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.
Release files for scrapy-botproxy 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scrapy-botproxy-1.0.1.tar.gz | 2.8 kB | Details |
Release files / scrapy-botproxy-1.0.1.tar.gz
| Download URL | scrapy-botproxy-1.0.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
472203c4aa3c7d16b4e50a2b556f37546a4276532904266cf26e035870c95fc6
|
|
BLAKE2b-256 checksum How to use checksums |
cc13ffd6acdd910463462e3e210bb710f6efa3c274d7c019262f983b1b614a04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |