Created
August 16, 2021 21:14
-
-
Save tumen102/8c217d915d0e30c3cfbd940d7bf9ddd3 to your computer and use it in GitHub Desktop.
Scrape proxies from https://geonode.com/free-proxy-list
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
import requests; | |
import json; | |
req = requests.get("https://proxylist.geonode.com/api/proxy-list?limit=7000&page=1&sort_by=lastChecked&sort_type=desc&protocols=http"); | |
jsn = json.loads(req.text)["data"]; | |
i = 0; | |
while i < len(jsn): | |
print("\033[95m"+jsn[i].get('ip') + ":" + jsn[i].get('port')); | |
i+=1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this requires the requests library btw which u can install by doing
pip install requests
in a terminal