Skip to main content

Scrapy scraperapi Proxy: scraperapi interfacing middleware for Scrapy

Project description

scrapyx-scraperapi-proxy

Scraper API middleware for Scrapy (http://scrapy.org/)

Processes Scrapy requests a man in the middle proxy service using https://www.scraperapi.com

Required

python version >= 2.7

Install

Checkout the source and run

python setup.py install

Or

pip install scrapyx-scraperapi-v2

settings.py

# Activate the middleware
SCRAPERAPI_ENABLED = True

# The API key 
SCRAPERAPI_KEY='your API key'

# JS Redering 
SCRAPERAPI_RENDER = False

# Premium account
SCRAPERAPI_PREMIUM = False

# Geographic Location
# 'US', 'UK', ...
SCRAPERAPI_COUNTRY_CODE = ''

DOWNLOADER_MIDDLEWARES = {
    'scrapyx_scraperapi_v2.ScraperApiV2ProxyMiddleware': 610,
}

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

scrapyx-scraperapi-v2-0.1.3.tar.gz (2.3 kB view hashes)

Uploaded source

Built Distribution

scrapyx_scraperapi_v2-0.1.3-py2.7.egg (4.0 kB view hashes)

Uploaded 2 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page