Answer the question
In order to leave comments, you need to log in
Why http requests with proxies require so much RAM?
There is a script that sends requests to different sites, looks something like this:
def get_proxy():
proxy_list = [‘первая прокся´, ´вторая´]
proxy = random.choice(proxy_list)
return proxy
While True:
proxy = get_proxy()
r = requests.get(url, proxies=proxy)
proxy = get_proxy()
r = requests.get(url, proxies=proxy)
proxy = get_proxy()
r = requests.get(url, proxies=proxy)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question