Skip to main content

Scrapy downloader middleware that rotates proxies.

Project description

https://travis-ci.org/povilasb/scrapy-proxy-rotator.svg?branch=master https://coveralls.io/repos/github/povilasb/scrapy-proxy-rotator/badge.svg?branch=master:target:https://coveralls.io/github/povilasb/scrapy-proxy-rotator?branch=master

This is a Scrapy downloader middleware that sets proxy server for requests. Currently proxy servers are rotated randomly. In the future more rotation strategies will be supported.

Configuration

Scrapy settings file:

DOWNLOADER_MIDDLEWARES = {
    'scrapy_proxy_rotator.ProxyMiddleware': 1,
}

PROXY_ROTATOR = {
    'username': 'user1',
    'password': 'pass1',
    'proxies_file': 'proxies.txt',
}

In proxies file proxy server must be formatted like this http://host:port.

Project details


Release history Release notifications

Download files

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

Files for scrapy-proxy-rotator, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size scrapy-proxy-rotator-0.1.0.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page