利用scrapy建爬虫项目

1、创建项目

scrapy startproject OracSplider

2、安装pywin32

pip install pywin32

3、编译项目

scrapy crawl xiaohuar 

4、保存抓取的数据

scrapy crawl xiaohuar -o items.json -t json

5、Scrapy项目的例子dirbot

https://github.com/scrapy/dirbot

猜你喜欢

转载自blog.csdn.net/judyjie/article/details/85345704