其他分享
首页 > 其他分享> > scrapy自定制命令

scrapy自定制命令

作者:互联网

自定制命令

 单个爬虫:

import sys
from scrapy.cmdline import execute

if __name__ == '__main__':
    execute(["scrapy","crawl","chouti","--nolog"])

 

标签:__,self,py,命令,scrapy,spiders,import,定制
来源: https://www.cnblogs.com/ganxiang/p/11029003.html