pycharm运行scrapy
1.打开pycharm, 点击File>Open找到mySpider项目导入
.
2.打开File>Settings>Project 点击Project Interpreter 右边有个Scrapy, 选中确定.
3.在spiders文件下新建一个启动文件,我命名为start.py
1 # -*- coding:utf-8 -*- 2 3 from scrapy import cmdline 4 5 cmdline.execute("scrapy crawl itcast -o itcast1.csv".split())
4.选择configuration路径, 如图下拉点击Edit Configuration, 选择运行的start.py脚本
第一次写...以后多记录...加油