Is there a way to overwrite the said file instead of appending it?
Example)
scrapy crawl myspider -o \"/path/to/json/my.json\" -t json scrapy cra
Or you can add:
import os if "filename.json" in os.listdir('..'): os.remove('../filename.json')
at the beginning of your code.
very easy.