web-novel-scraper 2.0.2__tar.gz → 2.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/PKG-INFO +1 -1
  2. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/decode.py +1 -1
  3. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/decode_guide/decode_guide.json +28 -0
  4. web_novel_scraper-2.0.3/web_novel_scraper/version.py +1 -0
  5. web_novel_scraper-2.0.2/web_novel_scraper/version.py +0 -1
  6. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/.github/scripts/update_version.py +0 -0
  7. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/.github/workflows/build.yaml +0 -0
  8. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/.github/workflows/publish.yaml +0 -0
  9. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/.github/workflows/test.yaml +0 -0
  10. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/.gitignore +0 -0
  11. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/.readthedocs.yaml +0 -0
  12. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/README.md +0 -0
  13. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/Makefile +0 -0
  14. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/make.bat +0 -0
  15. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/requirements.txt +0 -0
  16. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/README.rst +0 -0
  17. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/_static/README.md +0 -0
  18. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/commands/chapters_commands.rst +0 -0
  19. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/commands/creation_commands.rst +0 -0
  20. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/commands/index.rst +0 -0
  21. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/commands/output_commands.rst +0 -0
  22. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/commands/toc_commands.rst +0 -0
  23. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/commands/utils_commands.rst +0 -0
  24. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/concepts.rst +0 -0
  25. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/conf.py +0 -0
  26. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/config_options.rst +0 -0
  27. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/index.rst +0 -0
  28. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/docs/source/tutorial.rst +0 -0
  29. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/pyproject.toml +0 -0
  30. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/requirements.txt +0 -0
  31. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/__init__.py +0 -0
  32. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/__main__.py +0 -0
  33. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/config_manager.py +0 -0
  34. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/custom_processor/__init__.py +0 -0
  35. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/custom_processor/custom_processor.py +0 -0
  36. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/custom_processor/sites/genesis.py +0 -0
  37. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/custom_processor/sites/royalroad.py +0 -0
  38. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/file_manager.py +0 -0
  39. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/logger_manager.py +0 -0
  40. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/novel_scraper.py +0 -0
  41. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/request_manager.py +0 -0
  42. {web_novel_scraper-2.0.2 → web_novel_scraper-2.0.3}/web_novel_scraper/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: web-novel-scraper
3
- Version: 2.0.2
3
+ Version: 2.0.3
4
4
  Summary: Python tool that allows you to scrape web novels from various sources and save them to more readable formats like EPUB.
5
5
  Project-URL: Homepage, https://github.com/ImagineBrkr/web-novel-scraper
6
6
  Project-URL: Documentation, https://web-novel-scraper.readthedocs.io
@@ -79,7 +79,7 @@ class Decoder:
79
79
  chapter_title = self.decode_html(html, 'title')
80
80
  if chapter_title is None:
81
81
  logger.debug(f'No chapter_title found.')
82
- return chapter_title
82
+ return str(chapter_title).strip()
83
83
 
84
84
  def get_chapter_content(self, html: str, save_title_to_content: bool, chapter_title: str) -> str:
85
85
  logger.debug('Obtaining chapter content...')
@@ -380,5 +380,33 @@
380
380
  "key": "href"
381
381
  }
382
382
  }
383
+ },
384
+ {
385
+ "host": "foxaholic.com",
386
+ "has_pagination": false,
387
+ "request_config": {
388
+ "force_flaresolver": "true",
389
+ "request_timeout": 30
390
+ },
391
+ "title": {
392
+ "element": "li",
393
+ "class": "active",
394
+ "extract": {
395
+ "type": "text"
396
+ }
397
+ },
398
+ "content": {
399
+ "selector": "div.text-left p:not([class])",
400
+ "array": true
401
+ },
402
+ "index": {
403
+ "selector": "li.free-chap a",
404
+ "inverted": true,
405
+ "array": true,
406
+ "extract": {
407
+ "type": "attr",
408
+ "key": "href"
409
+ }
410
+ }
383
411
  }
384
412
  ]
@@ -0,0 +1 @@
1
+ __version__ = "2.0.3"
@@ -1 +0,0 @@
1
- __version__ = "2.0.2"