Skip to main content

Proxy Port Scrapy middleware

Project description

Proxy Port integration for Scrapy. About Proxy Port

Prerequisites

To use this package you will need a free API key. Get your API key here. Detailed instructions here.

Installation

$ pip install scrapyproxyport

Getting Started

You need to assign an API key. This can be done either through an environment variable

$ export PROXY_PORT_API_KEY=<API_KEY>

or inside settings.py.

# inside <your_project>/settings.py

PROXY_PORT_API_KEY = '<API_KEY>'
DOWNLOADER_MIDDLEWARES = {
    # Add middleware with order number right before CookiesMiddleware
    'scrapyproxyport.middlewares.ProxyMiddleware': 898,
    'scrapy.downloadermiddlewares.cookies.CookiesMiddleware': 899,
}
DOWNLOAD_TIMEOUT = 10
RETRY_TIMES = 20
DUPEFILTER_CLASS = 'scrapy.dupefilters.BaseDupeFilter'

Example Scrapy project

scrapy-proxyport-example

Project details


Download files

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

Source Distribution

scrapyproxyport-1.1.1.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

scrapyproxyport-1.1.1-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page