How to extract data to a file using scrapy?
问题 I am trying to extract data using Scrapy in Jupiter laptop from anaconda. I seem to have installed all the necessary libraries.Here is my code: import scrapy from scrapy.crawler import CrawlerProcess class RoadSpider(scrapy.Spider): name = "road_spider" start_urls = [ 'http://autostrada.info/ru/reviews/page/1/', ] def parse(self, response): for review in response.css('div.col-md-12.reviewBlock'): tmp = review.css('p.comment.break-word::text').extract_first() tmp1 = review.css('a.label.label