Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lnmtl.com terminates when chapter_no not purely numeric #3

Closed
mchubby opened this issue Jun 10, 2018 · 1 comment
Closed

lnmtl.com terminates when chapter_no not purely numeric #3

mchubby opened this issue Jun 10, 2018 · 1 comment

Comments

@mchubby
Copy link
Contributor

mchubby commented Jun 10, 2018

Visiting: https://lnmtl.com/chapter/the-amber-sword-book-3-chapter-531-1
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "./__main__.py", line 74, in <module>
    main()
  File "./__main__.py", line 28, in main
    end_url=sys.argv[4] if len(sys.argv) > 4 else ''
  File "./EbookCrawler/lnmtl.py", line 57, in start
    self.crawl_chapters(browser)
  File "./EbookCrawler/lnmtl.py", line 89, in crawl_chapters
    self.parse_chapter(browser)
  File "./EbookCrawler/lnmtl.py", line 112, in parse_chapter
    chapter_no = re.search(r'chapter-\d+$', url).group().strip('chapter-')
AttributeError: 'NoneType' object has no attribute 'group'

There are two chapters labeled # 531 on the website.

@dipu-bd
Copy link
Owner

dipu-bd commented Jul 12, 2018

This issue is fixed with the latest push

@dipu-bd dipu-bd closed this as completed Jul 12, 2018
dipu-bd pushed a commit that referenced this issue Nov 14, 2018
Updated To Latest from Dipu
dipu-bd pushed a commit that referenced this issue Aug 25, 2020
dipu-bd pushed a commit that referenced this issue Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants