Scrapy中runspider和crawl都可以运行爬虫程序
区别:
命令说明是否需要项目示例runspider未创建项目的情况下,运行一个编写在Python文件中的spiderno$ scrapy runspider myspider.py
crawl使用spider进行爬取yes$ scrapy crawl myspider
参考 scrapy 命令行工具(Command line tools)
Scrapy中runspider和crawl都可以运行爬虫程序
区别:
命令说明是否需要项目示例runspider未创建项目的情况下,运行一个编写在Python文件中的spiderno$ scrapy runspider myspider.py
crawl使用spider进行爬取yes$ scrapy crawl myspider
参考 scrapy 命令行工具(Command line tools)
微信扫码登录