repl.it
@AzureScripts/

SSL Proxy Grabber

Python

No description

fork
loading
Files
  • main.py
  • proxies.txt
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from requests_html import HTMLSession
from colorama import *
import requests, json, replit

session = HTMLSession()
r = session.get('https://www.sslproxies.org/')

proxies = list(zip(r.html.xpath('//*[@id="proxylisttable"]/tbody/tr/td[1]/text()'),r.html.xpath('//*[@id="proxylisttable"]/tbody/tr/td[2]/text()'))) 

i = 1

print("The script is ready to run!")
input("Press Enter to grab proxies!")
replit.clear()

for proxy in proxies:
  r = requests.get('https://extreme-ip-lookup.com/json/' + proxy[0])
  proxy_data = r.json()
  proxy_location = proxy_data["country"]

  print(f"[{i}] Gathered Proxy: " + Fore.RED + proxy[0] + Fore.RESET + ":" + proxy[1] + Fore.RESET + " (" + proxy_location + ")")
  i = i + 1
  f = open('proxies.txt', 'w+').read().splitlines()
  f.writeline(proxy[0] + ":" + proxy[1] + "\n")
  f.close()

print("")
print("No more proxies can be found! Please run this script again later!")
input("Press Enter to stop the script!")
?