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 >= 3.6
Install
Checkout the source and run
python setup.py install
Or
pip install scrapyx-scraperapi-proxy
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
SCRAPERAPI_COUNTRY_CODE = '' # 'US', 'UK', ...
DOWNLOADER_MIDDLEWARES = {
'scrapyx_scraperapi.ScraperApiProxyMiddleware': 610,
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for scrapyx-scraperapi-proxy-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 117fc0f247bf7d5d1e13ede1c941449fbf86ca369398b0c00ae5ab014ab14f44 |
|
MD5 | a03e8db86578414031dacdc2c4b1ae9c |
|
BLAKE2b-256 | e0e19db708a3e332b10ca70012f7bf902fc8bd15f1cf7e966047f6f612af34a7 |