Skip to content

Instantly share code, notes, and snippets.

@iNawaR1
Last active March 1, 2022 01:10
Show Gist options
  • Save iNawaR1/f45a695d7ac94c13950f66c945f853a6 to your computer and use it in GitHub Desktop.
Save iNawaR1/f45a695d7ac94c13950f66c945f853a6 to your computer and use it in GitHub Desktop.
Just start the script you don't need anything it will automatically save the proxies for you (: ...
import requests
global iNaWaR
import time as mm
import sys as n
r=requests.session()
def slow(M):
for c in M + '\n':
n.stdout.write(c)
n.stdout.flush()
mm.sleep(1. / 15)
gr = "\033[1;32m"
so = '\033[1;35m'
print(f'{so}☆:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::☆')
print (f'{so}☆:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::☆')
print (f'{so}☆:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::☆')
print (f'{so}☆:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::☆')
while True:
# socks4
url = 'https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/socks4.txt'
re = requests.get(url).text
# http
url_2 = 'https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/http.txt'
re_2 = requests.get(url_2).text
# socks5
url_3 = 'https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/socks5.txt'
re_3 = requests.get(url_3).text
# https
url_4 = 'https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/https.txt'
re_4 = requests.get(url_4).text
with open('socks4.txt', 'w') as file:
file.write(re )
with open('socks5.txt', 'w') as file:
file.write(re_3)
with open('http.txt', 'w') as file:
file.write(re_2)
with open('https.txt', 'w') as file:
file.write(re_4)
print('PROXY TYPES HTTP/HTTPS/SOCKS4/SOCKS5')
print(f'{gr} ✅ the Proxies has been added to HTTP.txt / SOCKS4.txt / SOCKS5.txt HAVE FUN ... ✅')
print(f'{gr} The Proxies are updated every 15 min and most of them are working (; ')
slow(f'{so} New and better version!. Made By iNaWaR with LOVE (:')
slow(f'{so} Byee ...')
exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment