Closed Rahulsunny11 closed 4 years ago
Hi, @rugantio I ran following command to scrape all comments in Trump page but the output csv file is empty scrapy crawl comments -a email="" -a password="" -a page="DonaldTrump" -a date="2020-04-04" -a lang="it" -o trumpcomments.csv
scrapy crawl comments -a email="" -a password="" -a page="DonaldTrump" -a date="2020-04-04" -a lang="it" -o trumpcomments.csv
I got the same problem.
just change line44 to for post in response.xpath("//article[contains(@data-ft,'top_level_post_id')]"): it will work
for post in response.xpath("//article[contains(@data-ft,'top_level_post_id')]"):
Hi, @rugantio
I ran following command to scrape all comments in Trump page but the output csv file is empty
scrapy crawl comments -a email="" -a password="" -a page="DonaldTrump" -a date="2020-04-04" -a lang="it" -o trumpcomments.csv