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

Posted HuaBro

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python爬虫scrapy入门6:Scrapy中runspider和crawl的区别相关的知识,希望对你有一定的参考价值。

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的区别的主要内容,如果未能解决你的问题,请参考以下文章