When scrapy calls the paid agent api, proxy, it can only be obtained once every 5 seconds. Where do I need to set it?

scrapyapi5

because I originally wanted to get 100 ip, at a time and put it in the agent pool, but because the agent is unstable, it can not provide support for a long time. So I gave up the idea of getting 100 ip at once.

5request
Feb.28,2021

you can throw him into the cache, and the cache expires for 5 seconds


set a sleep pause time in the middleware that calls the proxy api.

Menu