擅长:python、mysql、java
<ul>
<li><code>-o ScrapedData.json</code>重写<code>FEED_URI</code>设置</li>
<li>并且<code>-t json</code>覆盖<code>FEED_FORMAT</code>设置</li>
</ul>
<p>(见<a href="https://github.com/scrapy/scrapy/blob/master/scrapy/commands/crawl.py#L24" rel="nofollow">https://github.com/scrapy/scrapy/blob/master/scrapy/commands/crawl.py#L24</a>)</p>
<p>因此,当从脚本运行spider时,应该考虑覆盖这两个设置。在</p>