创建scrapy爬虫项目
scrapy startproject xmgHotel

进入spider目录,生成scrapy
scrapy genspider -t crawl weisuen sohu.com

第一个错误是因为爬虫名称不能跟项目名称相同
scrapy startproject xmgHotel
scrapy genspider -t crawl weisuen sohu.com
第一个错误是因为爬虫名称不能跟项目名称相同
本文标题:Scrapy爬虫入门
本文链接:https://www.haomeiwen.com/subject/bkiioctx.html
网友评论