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

"wikipedia_scraper_sample.py": 'NoneType' object has no attribute 'find_all' #2

Open
reikairen opened this issue Jun 1, 2020 · 1 comment

Comments

@reikairen
Copy link

reikairen commented Jun 1, 2020

Traceback (most recent call last):
  File "C:/Users/mrsidespin1/Desktop/lamthuyvo/wikipedia_scraper_sample.py", line 47, in <module>
    scrapeContent(url)
  File "C:/Users/mrsidespin1/Desktop/wikipedia_scraper_sample.py", line 26, in scrapeContent
    all_groupings = content.find_all('div', class_='mw-category-group')
AttributeError: 'NoneType' object has no attribute 'find_all'
@reikairen
Copy link
Author

Line 26, change "all_groupings = content.find_all('div', class_='mw-category-group')" to "all_groupings = soup.find_all('div', class_='mw-category-group')"

lamthuyvo pushed a commit that referenced this issue Feb 1, 2022
Merge pull request #3 from yesdeepakmittal/master
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