scapy鏁欑▼鍒濇帴瑙(1)

棣栧厛鍒涘缓铏氭嫙鐜鍜屽畨瑁卻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

All posts

Other pages

鍙戣〃璇勮

鐢靛瓙閭欢鍦板潃涓嶄細琚叕寮銆 蹇呭~椤瑰凡鐢*鏍囨敞