Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

three ways for spider by python

Project Description

djangospider is light web crawling framework, it have a few code, but can do high speed crawling, it support three modes to crawl: multithreading, tornado IOloop, and twisted can easily to understand to how to use async crawler.


Python2.7 Works on Linux
you can download the zip package in github. then unpack the zip package, find the path of, Execute the command: $sudo python install

The entry function: Start(start_urls,mode)

start_urls parameter: is a list, and it’s element is tuple:

the first of the tuple is url which you will crawl, the second of the tuple is the callback for url.

the mode parameter: the crawler’s way, it has three types:

if mode is int 1 : multithreading ways if mode is int 2 : tornado async ways if mode is int 3 : twisted async ways

For example:

from import Start ,_crawl

def callback(response,url):
print “get the %s” %url


Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(61.4 kB) Copy SHA256 Hash SHA256
Source None Feb 28, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers