# Add this line below start_urls custom_settings = {"FEEDS":{"results.xml":{"format":"xml"}}} #working on scrapy version 2.4.1 # to export output into csv file format