from scrapy.cmdline import execute import sys import os sys.path.append(os.path.dirname(os.path.abspath(__file__))); execute(["srcapy","crawl","项目名称"])
from scrapy.cmdline import execute import sys import os sys.path.append(os.path.dirname(os.path.abspath(__file__))); execute(["srcapy","crawl","项目名称"])
转载于:https://www.cnblogs.com/wtcl/p/8734870.html