python3 scrapy main运行调式

Posted 弃身锋刃端!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python3 scrapy main运行调式相关的知识,希望对你有一定的参考价值。

from scrapy.cmdline import execute
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)));
execute(["srcapy","crawl","项目名称"])

 

以上是关于python3 scrapy main运行调式的主要内容,如果未能解决你的问题,请参考以下文章