码迷,mamicode.com
首页 > 编程语言 > 详细

python分布式爬虫scrapy搭建(三)

时间:2017-10-08 16:11:57      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:rtp   style   cto   ted   director   pre   spider   with   star   

进入文件夹

(blogproject_env) H:\>c:

(blogproject_env) C:\Users\admin>cd C:\Users\admin\Desktop\xiangmu

创建scrapy工程

(blogproject_env) C:\Users\admin\Desktop\xiangmu>scrapy startproject ArticleSpider

安装成功:

  

New Scrapy project ArticleSpider, using template directory h:\\blog\\blogproject_env\\lib\\site-packages\\scrapy\\templates\\project, created in:
C:\Users\admin\Desktop\xiangmu\ArticleSpider

You can start your first spider with:
cd ArticleSpider
scrapy genspider example example.com

创建要爬取的项目

(blogproject_env) C:\Users\admin\Desktop\xiangmu>cd ArticleSpider

(blogproject_env) C:\Users\admin\Desktop\xiangmu\ArticleSpider>scrapy genspider jobbole bolg.gobbole.com
Created spider jobbole using template basic in module:
  ArticleSpider.spiders.jobbole

(blogproject_env) C:\Users\admin\Desktop\xiangmu\ArticleSpider>

技术分享


 

python分布式爬虫scrapy搭建(三)

标签:rtp   style   cto   ted   director   pre   spider   with   star   

原文地址:http://www.cnblogs.com/Mjonj/p/7637581.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!