棣栧厛鍒涘缓铏氭嫙鐜鍜屽畨瑁卻crapy,杩欎竴閮ㄥ垎鍙互鐪嬫垜鍓嶉潰鍐欒繃鐨勫崥鏂
浣跨敤virtualenv鍜寁irtualenvwrapper鎼缓python鐨勮櫄鎷熺幆澧
pip install scrapy 閬囧埌鐨勫潙
鍩烘湰涓婂氨鍙互瀹夊叏鐨勫畨瑁呭畬
鐒跺悗鍒涘缓绗竴涓」鐩
(article_spider) d:studypython-project>scrapy startproject ArticleSpider
New Scrapy project 'ArticleSpider', using template directory 'd:\study\envs\article_spider\lib\site-packages\scrapy\templates\project', created in:
d:studypython-projectArticleSpider
You can start your first spider with:
cd ArticleSpider
scrapy genspider example example.com
(article_spider) d:studypython-project>cd ArticleSpider
(article_spider) d:studypython-projectArticleSpider>scrapy genspider jobbole blog.jobole.com
Created spider 'jobbole' using template 'basic' in module:
ArticleSpider.spiders.jobbole
鍙戣〃鍥炲