【发布时间】:2014-03-18 02:17:17
【问题描述】:
我在 scrapy 中编写了一个蜘蛛,并且我能够通过 python 脚本成功地运行它。 问题是,在通过scrapy提示运行蜘蛛时,我们提供了“-o ScrapedData.json -t json”之类的参数 我想通过 python 脚本运行“scrapy crawl myspider -o ScrapedData.json -t json”。 非常感谢任何帮助。提前致谢!
【问题讨论】:
-
不确定我的问题是否正确,但您可能想看看 python
subprocess模块。