在项目根目录下新建main.py文件,用于调试 from scrapy.cmdline import executeexecute(["scrapy","crawl","MySpider"]) 转载于:https://www.cnblogs.com/huwei934/p/6971603.html