-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Description
web-scraping-with-python-2848331/02_02_e/article_crawler/article_crawler/spiders/wikipedia.py
Line 18 in 802f2e1
| article['title']= response.xpath('//h1/text()').get() or response.xpath('//h1/i/text()') |
The second half of the code is missing a .get() which will store incorrectly parsed data.
The highlighted line should be:
article["title"] = response.xpath('//h1/text()').get() or response.xpath('//h1/i/text()').get()Metadata
Metadata
Assignees
Labels
No labels