Giter Site home page Giter Site logo

qzone-crawler's Introduction

QZone Crawler python

基于Scrapy的QQ空间照片/相册爬虫。

Dependence

  • python 2.7
  • scrapy==1.3.2
  • qqlib==1.0.0

Usage

  1. git clone [email protected]:Lodour/QZone-Crawler.git

  2. cd QZone-Crawler

  3. virtualenv env --python=python2.7

  4. source ./env/bin/activate

  5. pip install scrapy==1.3.2 qqlib==1.0.0

  6. cd qzone

  7. scrapy crawl photo [-a qq=<Your QQ>] [-a target=<Target QQ>]

  8. 图片保存在QZone-Crawler/qzone/downloads文件夹内

Hint

  • API可能会失效,一般而言最近一次Commit的时候是有效的

  • 项目仍在编写中,目前仅完成了爬取原创说说中的照片

  • 如果非原创的说说图片也需要爬取

请将QZone-Crawler/qzone/qzone/spiders/photo.py中的assert not 'rt_certified' in msg注释掉

  • 没有对virtualenv的配置进行测试,如有问题请自行解决

  • 及时清空终端命令历史不指定参数时,爬虫开启后会提示输入

License

MIT License

Todo

  • 相册爬虫
  • 空间API应该放在单独的包里,以便于管理和更新
  • 密码不应该在参数中明文输入
  • 优化对Cookies的处理,应该自动保持而不被取消

Update

2017-2-27

使用getpass进行密码输入

2017-2-26

Initial commit

qzone-crawler's People

Contributors

lodour avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

qzone-crawler's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.