爬虫框架常见命令(善忘者)
2018-01-03 本文已影响0人
碎玉长青
1 scrapy
创建scrapy 爬虫项目
scrapy startproject 项目名
生成一个爬虫
scrapy genspider 启动名 "www.baidu.com"
启动爬虫
scrapy crawl 启动名
2 scrapy-crawl
生成一个crawl 爬虫
scrapy genspider -t crawl 启动名 "www.baidu.com"
crawl 启动
scrapy crawl 启动名