how to get scrapy output file in xml file 1

how to get scrapy output file in xml file

# 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

Here is what the above code is Doing:
1. We are creating a custom_settings dictionary.
2. We are creating a FEEDS dictionary inside the custom_settings dictionary.
3. We are creating a results.csv dictionary inside the FEEDS dictionary.
4. We are creating a format key inside the results.csv dictionary and assigning it the value csv.

Similar Posts