Answer the question
In order to leave comments, you need to log in
When parsing a site, ip is blocked due to a large number of requests, how to avoid this?
I wrote a parser for the Avito site, it works based on the bs4 and requests libraries, IP is blocked if requests are too frequent, I tried to make requests through a proxy, it didn’t help, only sleep(random.randint()) helps a little, but sometimes it still blocks, yes and in addition, 100 pages are parsed because of this for quite a long time
Answer the question
In order to leave comments, you need to log in
Yes, there is no way to avoid it. Either a proxy, or increase the pause between requests .. you can wait. Throw it on the server and let it work for itself
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question