通过脚本启动爬虫

from scrapy import cmdline

cmdline.execute('scrapy crawl MySpider'.split())

猜你喜欢

转载自my.oschina.net/yestreenstars/blog/1634392