MCPcopy Index your code
hub / github.com/Python3WebSpider/ProxyPool / get_random_proxy

Function get_random_proxy

examples/usage.py:8–13  ·  view source on GitHub ↗

get random proxy from proxypool :return: proxy

()

Source from the content-addressed store, hash-verified

6
7
8def get_random_proxy():
9 """
10 get random proxy from proxypool
11 :return: proxy
12 """
13 return requests.get(proxypool_url).text.strip()
14
15
16def crawl(url, proxy):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected