Reputation: 1105
I am using a python script to parse a website via proxy. Said proxy implements a limit on how many concurrent requests can I make. When running a single thread of my python application, I encountered my proxy provider rate limiting me and I wonder, if I am really making more than 1 request when I run requests.get(url, headers=headers, proxies=proxies)
Shouldn’t this only return the document page without any other resources?
Upvotes: 0
Views: 117
Reputation: 2479
As tested below, a single request is sent. Maybe what is happening is that your proxy provider has some mechanism to detect bots, and is blocking your script.
This mechanism could use anything from user agent, to how the packets are sent.
Upvotes: 2