Skip to main content

Proxy Port Scrapy middleware

Project description

Proxy Port integration for Scrapy.

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'

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.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

scrapyproxyport-1.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file scrapyproxyport-1.1.0.tar.gz.

File metadata

  • Download URL: scrapyproxyport-1.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for scrapyproxyport-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b7ab7611d685c8b243f9715cb3a7d361fe38750f69bd3398548d1fe438889d9f
MD5 167fc7cadcc170a920543353e6307d34
BLAKE2b-256 0f63a3e0a623cd487bfba17930ebb5b449144f9a7b4c64b11cc98398446082d6

See more details on using hashes here.

File details

Details for the file scrapyproxyport-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for scrapyproxyport-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ef5e29c18154211206d01d659cef6bb22740af96ae9bc2e97925f0c597f45c6
MD5 8a7b7aebda7c5ce106e10e4113fbd5ef
BLAKE2b-256 4d4d8691771da3d61a8db6f7ce9ac877a5045ad37517a9c3a620bb0c38a4559b

See more details on using hashes here.

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