Chinaunix首页 | 论坛 | 博客
  • 博客访问: 162529
  • 博文数量: 73
  • 博客积分: 3106
  • 博客等级: 中校
  • 技术积分: 730
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-11 22:57
文章分类

全部博文(73)

文章存档

2018年(2)

2016年(1)

2012年(8)

2011年(21)

2010年(41)

我的朋友

分类: Python/Ruby

2011-06-02 13:42:49

  • 在Windows上的安装:
  1. - you may need to install because of
  2. Install (required by Twisted)
  3. Download the Windows installer from the and install it.
  4. Add C:\Python26\Scripts to PATH中
  •  一个例子:
  1. 创建一个scrapy项目: scrapy  startproject czf_scrapy_test , 得到如下目录结构:
  czf_scrapy_test /
             scrapy.cfg :
              czf_scrapy_test / :将在这里添加模块
                               __init__.py
                               items.py  :确定要提取一个页面的哪些类型的信息,如:title,url,desc
                               pipelines.py
                               settings.py
                               spiders/    : 存放抓取规则的代价
                                         __init__.py
                                         ...
阅读(561) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~