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 Source

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