GithubHelp home page GithubHelp logo

second-spider's Introduction

second-spider

Another concurrency spider, powered by gevent,requests,pyquery

Features

  1. The concurrency foundation on gevent
  2. The spider strategy highly configurable:
  • Max depth
  • Sum totals of urls
  • Max concurrency of http request,avoid dos
  • Request headers and cookies
  • Only crawl same host url
  • Only crawl same domain url
  • Max running time

Dependencies

  • python 2.7
  • gevent 1.0dev
  • requests 1.0.3
  • pyquery 1.2.4

Example

    spider = Spider()
    spider.setRootUrl("http://www.sina.com.cn")
    spider.run()

TODO

  • Support Distributed , update gevent.Queue -> redis.Queue
  • Storage system highly configurable
  • Support Ajax url (webkit etc..)

LICENSE

Copyright © 2013 by kenshin

Under MIT license : rem.mit-license.org

second-spider's People

Contributors

kenshinx avatar mengzhuo avatar jetz avatar

Watchers

 avatar

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.