Global proxy — every request through AvocadoVPN
Insettings.py:
HTTP_PROXY / HTTPS_PROXY env vars by default — no extra middleware needed if you set the env vars before scrapy crawl.
Per-request proxy (recommended for sticky sessions)
Setmeta['proxy'] on each Request. Gives you full control over which request gets which sticky session:
Handling 429 / 502 retries
Scrapy has built-in retry handling. Make sure yoursettings.py retries AvocadoVPN’s transient codes: