Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def proxy_generator():
response = requests.get("https://sslproxies.org/")
soup = BeautifulSoup(response.content, 'html5lib')
proxy = {'https': choice(list(zip(map(lambda x:x.text, soup.findAll('td')[::8]), map(lambda x:x.text, soup.findAll('td')[1::8]))))))}
return proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment