Pycharm中运行Scrapy爬虫程序

Pycharm中运行Scrapy爬虫程序

  • 创建scrapy项目
scrapy startproject scrapyTest

在这里插入图片描述

from scrapy import cmdline
cmdline.execute("scrapy crawl itcast".split())

在这里插入图片描述

  • 配置pycharm
    在这里插入图片描述

在这里插入图片描述

  • 运行

在这里插入图片描述

  • 输出结果
    在这里插入图片描述

参考:
[1] https://www.jb51.net/article/129346.htm

猜你喜欢

转载自blog.csdn.net/weixin_41104835/article/details/88415641