Skip to main content

ProxyCrawl API middleware for Scrapy

Processes Scrapy requests using ProxyCrawl services either with Normal or Javascript tokens

Installing

Choose a way of installing:

  • Clone the repository inside your Scrapy project and run the following:
python setup.py install
  • Or use PyPi Python package manager. pip install scrapy-proxycrawl-middleware

Then in your Scrapy settings.py add the following lines:

# Activate the middleware
PROXYCRAWL_ENABLED = True

# The ProxyCrawl API token you wish to use, either normal of javascript token
PROXYCRAWL_TOKEN = 'your token'

# Enable the middleware
DOWNLOADER_MIDDLEWARES = {
    'scrapy_proxycrawl.ProxyCrawlMiddleware': 610
}

Usage

Use the scrapy_proxycrawl.ProxyCrawlRequest instead of the scrapy built-in Request. The scrapy_proxycrawl.ProxyCrawlRequest accepts additional arguments, used in Proxy Crawl API:

from scrapy_proxycrawl import ProxyCrawlRequest

yield ProxyCrawlRequest(
    "http://target-url",
    callback=self.parse_result
    device='desktop',
    country='US',
    page_wait=1000,
    ajax_wait=True,
    dont_filter=True
)

The target url will be replaced with proxy crawl url and parameters will be encoded into the url by the middleware automatically.

If you have questions or need help using the library, please open an issue or contact us.


Copyright 2020 ProxyCrawl

Metadata

Release files for scrapy-proxycrawl-middleware 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrapy-proxycrawl-middleware 1.1.0
File Size Uploaded
scrapy-proxycrawl-middleware-1.1.0.tar.gz 4.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for scrapy-proxycrawl-middleware 1.1.0
File Interpreter ABI Platform
scrapy_proxycrawl_middleware-1.1.0-py3-none-any.whl Python 3 none any Details
scrapy_proxycrawl_middleware-1.1.0-py2-none-any.whl Python 2 none any Details

Total release size: 25.0 kB

Release files / scrapy-proxycrawl-middleware-1.1.0.tar.gz

Download URL scrapy-proxycrawl-middleware-1.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
156a8c61e4d881df3f382c28117567e4668c81378b73d92d76ef5efb7fd0e06f
BLAKE2b-256 checksum
How to use checksums
8c740b70ab4209a263a966035b5fab571d2f732bf85d32d5bf9c064370797917
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.7.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.17

Release files / scrapy_proxycrawl_middleware-1.1.0-py3-none-any.whl

Download URL scrapy_proxycrawl_middleware-1.1.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22b3c6a7eaf5293c7464b1d8ced6cc0cfe968fa6c89984d926d4f884cafab481
BLAKE2b-256 checksum
How to use checksums
6e1fe8a0a931d4a1e8d2fc96ac78c88de3dcacc1a69f265feadc9d3cc934243f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.7.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.17

Release files / scrapy_proxycrawl_middleware-1.1.0-py2-none-any.whl

Download URL scrapy_proxycrawl_middleware-1.1.0-py2-none-any.whl
Size 10.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
1d1461044197456cab54b0e7d5cd0dbd38419710d6e657439510bc7810d9fb40
BLAKE2b-256 checksum
How to use checksums
1ebee0738f10157b8a391d0787bbc8ec37de404b92518d521a6582b503aab9c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.7.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.17

Release history Release notifications | RSS feed

1.2.0

1 release file

This release

1.1.0 This release

3 release files

1.0.2

3 release files

1.0.1

3 release files

1.0.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page