I want to write to csv file in scrapy
for rss in rsslinks: item = AppleItem() item[\'reference_link\'] = response.url base_url = get_base_url(response
This is what worked for me using Python3:
scrapy runspider spidername.py -o file.csv -t csv