码迷,mamicode.com
首页 > 编程语言 > 详细

【python爬虫】scrapy入门6:Scrapy中runspider和crawl的区别

时间:2020-05-08 23:07:13      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:https   latest   htm   adt   项目   csdn   sdn   crawl   awl   

runspider:不依赖创建项目

命令:scrapy runspider myspider.py  等同于  pyhton myspider.py

crawl:使用spider进行爬取,依赖项目创建

命令:scrapy crawl myspider

 

更多命令行工具:https://scrapy-chs.readthedocs.io/zh_CN/latest/topics/commands.html

------------------

转载链接:https://blog.csdn.net/mouday/article/details/88549031

【python爬虫】scrapy入门6:Scrapy中runspider和crawl的区别

标签:https   latest   htm   adt   项目   csdn   sdn   crawl   awl   

原文地址:https://www.cnblogs.com/hightech/p/12853331.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!