AttributeError: 'NoneType' object has no attribute 'get_text'
Closed this issue · 2 comments
Bunkai9448 commented
I'm doing it under
Ubuntu 20.04 LTS
Python 3.8.10, with the extra libs required
Running command python3 kakuyomu.py
[Initial] Input novel id here: kakuyomu.jp/works/1177354054880254749
And it gives me this error/trace:
[Main Thread] Fetching Metadata...
Traceback (most recent call last):
File "kakuyomu.py", line 192, in <module>
syo.get_meta()
File "kakuyomu.py", line 112, in get_meta
self.novel_title = self.metapage.find('span', id='catchphrase-body').get_text()
AttributeError: 'NoneType' object has no attribute 'get_text'
samjaninf commented
It's a time out issue. I suspect 16 threads is too fast so you get a 429 in there sometimes.
Bunkai9448 commented
I got everything working thanks to someone from a discord server I'm in. I pushed a commit to fix the issue
(with a copied and edited file to have both options).
Until that is approved, you can find the fix in my fork: https://github.com/Bunkai9448/WebNovelCrawler/