scrapy基础知识之 pycharm 调试小技巧: 在项目根目录下新建main.py文件,用于调试 from scrapy.cmdline import executeexecute(["scrapy","crawl","MySpider"])