title: Is it possible to customize Scrapy json output?
body: <p>I am using Scrapy to crawl several websites, and need the output to be in JSON. I have set the command:</p>
  
  <pre><code>scrapy crawl MySpider -o "path/to/output.json" -t json
  </code></pre>
  
  <p>That works, however, now I need to add stats to output - the list of requests, errors, types of errors (404s, etc.). Also, I need the output file to be rewritten, not appended to. I can't find any instructions how to do this.</p>