ApifyHttpProxyMiddleware
Index
Constructors
Methods
Constructors
__init__
{"content": ["Create a new instance.\n", {"
Parameters
proxy_settings: dict
Returns None
Methods
from_crawler
{"content": ["Create an instance of ApifyHttpProxyMiddleware from a Scrapy Crawler.\n", {"
Parameters
crawler: Crawler
Returns ApifyHttpProxyMiddleware
process_exception
{"content": ["Process an exception that occurs during request processing.\n", {"
Parameters
request: Request
exception: Exception
spider: Spider
Returns None
process_request
{"content": ["Process a Scrapy request by assigning a new proxy.\n", {"
Parameters
request: Request
spider: Spider
Returns None
{"content": ["Apify HTTP proxy middleware for Scrapy.\n\nThis middleware enhances request processing by adding a 'proxy' field to the request's meta and an authentication\nheader. It draws inspiration from the
HttpProxyMiddlewareincluded by default in Scrapy projects. The proxy URL\nis sourced from the settings under theAPIFY_PROXY_SETTINGSkey. The value of this key, a dictionary, should be\nprovided by the Actor input. An example of the proxy settings:\n\nproxy_settings = {'useApifyProxy': true, 'apifyProxyGroups': []}"]}