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

soup.title AttributeError: 'NoneType' object has no attribute 'string' #3

Closed
YUChoe opened this issue Oct 17, 2019 · 1 comment
Closed

Comments

@YUChoe
Copy link
Owner

YUChoe commented Oct 17, 2019

Traceback (most recent call last):
  File "go.py", line 6, in <module>
    (title, desc, image_url, html) = nc.crawler(url)			
  File "/home/pp/Desktop/test/venv/lib/python3.7/site-packages/noizze_crawler.py", line 42, in crawler
    (title, desc, image_url, html) = parser(url, html)
  File "/home/pp/Desktop/test/venv/lib/python3.7/site-packages/noizze_crawler.py", line 54, in parser
    if soup.title.string:
AttributeError: 'NoneType' object has no attribute 'string'
@YUChoe
Copy link
Owner Author

YUChoe commented Oct 23, 2019

YUChoe added a commit that referenced this issue Oct 24, 2019
YUChoe added a commit that referenced this issue Oct 24, 2019
#3 Fixed soup.title exist check
@YUChoe YUChoe closed this as completed Oct 24, 2019
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

1 participant