Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exception in test #3
- Traceback (most recent call last):
- File "scraper.py", line 101, in <module>
- save_articles()
- File "scraper.py", line 97, in save_articles
- save_article(_type, cwd, url)
- File "scraper.py", line 73, in save_article
- text = soup2.find('div', class_='article-item__body').text.strip()
- AttributeError: 'NoneType' object has no attribute 'text'
- Please find below the output of your program during this failed test.
- Note that the '>' character indicates the beginning of the input line.
- ---
- > 2
- > News Feature
- 0
- Page_1
- https://www.nature.com/nature/articles?searchType=journalSearch&sort=PubDate&page=1
- 1
- Page_2
- https://www.nature.com/nature/articles?searchType=journalSearch&sort=PubDate&page=2
- COVID_vaccines_and_breastfeeding_what_the_data_say.txt
- https://www.nature.com/articles/d41586-021-01680-x
Advertisement
Add Comment
Please, Sign In to add comment