Skip to content

Instantly share code, notes, and snippets.

@saasindustries
Created January 12, 2021 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saasindustries/cc90ed3ea7c96a5d3869e4f5922b8cee to your computer and use it in GitHub Desktop.
Save saasindustries/cc90ed3ea7c96a5d3869e4f5922b8cee to your computer and use it in GitHub Desktop.
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