美文网首页
爬虫框架常见命令(善忘者)

爬虫框架常见命令(善忘者)

作者: 碎玉长青 | 来源:发表于2018-01-03 20:45 被阅读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 启动名

相关文章

网友评论

      本文标题:爬虫框架常见命令(善忘者)

      本文链接:https://www.haomeiwen.com/subject/asyknxtx.html