使用pycharm运行已经建好的scrapy文件

在scrapy项目文件夹中新建一个文件,代码如下
from scrapy.cmdline import execute
execute("scrapy crawl top250".split())

原理见

https://blog.csdn.net/qq_39377418/article/details/89306974

 

posted @ 2020-03-14 21:25  爬爬QQ  阅读(188)  评论(0)    收藏  举报