Skip to main content

BotProxy (IP Rotating HTTP proxy) downloader middlewarefor Scrapy

Project description

BotProxy downloader middleware for Scrapy.

Overview

BotProxy is an IP Rotating HTTP Proxy. Plug BotProxy into your web scraping application and it will automatically route your requests through one of our outgoing proxy servers. Multiple locations, fresh IP addresses every day. Typical integrations take less than 5 minutes into any script or application.

Please note, in order to use this service you need to have active subscription. You can get one at BotProxy website.

Installation

From PyPI

pip install scrapy-botproxy

From GitHub

pip install -e git+https://github.com/botproxy/scrapy-botproxy@master#egg=scrapy_botproxy

Usage

settings.py:

DOWNLOADER_MIDDLEWARES = {
    'scrapy_botproxy.BotProxyMiddleware': 100,
}

BOTPROXY_USER = 'proxy_username'
BOTPROXY_PASSWORD = 'proxy_password'
BOTPROXY_LOCATION = 'us-ny'  # optional
BOTPROXY_COUNTRY = 'US'  # optional

You can also control botproxy behavior using scrapy request.meta property. Set botproxy_disable to True to temorary bypass proxy for current request. Set location or country to route request through selected location or any location in the specific country.

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
scrapy-botproxy-1.0.1.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None Dec 18, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page