python - Scrapy overwrite json files instead of appending the file -


is there way overwrite said file instead of appending it?

example)

scrapy crawl myspider -o "/path/to/json/my.json" -t json     scrapy crawl myspider -o "/path/to/json/my.json" -t json 

will append my.json file instead of overwrite it.

scrapy crawl myspider -t json --nolog -o - > "/path/to/json/my.json" 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

jquery - ReferenceError: CKEDITOR is not defined -

android - Go back to previous fragment -