Created
January 12, 2021 16:35
-
-
Save saasindustries/cc90ed3ea7c96a5d3869e4f5922b8cee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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