Skip to content

Commit

Permalink
Update CHINO.PROXY.SCRAPER.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Chainski committed Jan 9, 2022
1 parent 0c57844 commit a7168d0
Showing 1 changed file with 81 additions and 35 deletions.
116 changes: 81 additions & 35 deletions CHINO.PROXY.SCRAPER.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
import os
from time import sleep
import requests
import random
import string
import colorama
from colorama import Fore
import webbrowser
import os
import sys
from time import sleep
import fade
import concurrent.futures

webbrowser.open('https://www.youtube.com/channel/UCR55c-mtcH86O-QvOQC_oFg')
test_url = r'https://www.youtube.com/channel/UCR55c-mtcH86O-QvOQC_oFg?sub_confirmation=1'

os.system('cls')
with open('Subscribe.url','w') as f:
f.write(f"""[InternetShortcut]
URL={test_url}
""")

logo = '''
os.system('cls')

text = '''
▄████▄ ██░ ██ ██ ███▄ █ ▒█████ ██████ ▄████▄ ██▀███ ▄▄▄ ██▓███ ▓█████ ██▀███
▒██▀ ▀█ ▒▓██░ ██ ▒▓██ ██ ▀█ █ ▒██▒ ██▒ ▒██ ▒ ▒██▀ ▀█ ▓██ ▒ ██▒▒████▄ ▓██░ ██ ▓█ ▀▓██ ▒ ██▒
▒▓█ ▄░▒██▀▀██ ░▒██▓██ ▀█ ██▒▒██░ ██▒ ░ ▓██▄ ▒▓█ ▄▓██ ░▄█ ▒▒██ ▀█▄ ▓██░ ██▓▒▒███ ▓██ ░▄█ ▒
Expand All @@ -21,37 +26,78 @@
░ ▒ ▒ ░▒░ ░ ▒ ░ ░░ ░ ▒░ ░ ▒ ▒░ ░ ░▒ ░ ░ ▒ ░▒ ░ ▒░ ░ ▒▒ ░▒ ░ ░ ░ ░▒ ░ ▒░
░ ░ ░░ ░ ▒ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
'''
faded_text = fade.brazil(text)
print(faded_text)

info = '''
╔═════════════════════════════════════════════╗
║CHINO PROXY SCRAPER V1.0
║coded by CHINOTECH ║
║For Educational Purposes Only ║
║Telegram Channel : https://t.me/chinotech ║
╚═════════════════════════════════════════════╝
╔═════════════════════════════════════════════
║CHINO PROXY SCRAPER 1.0.0.1
║coded by CHINOTECH
║For Educational Purposes Only
║Telegram Channel : https://t.me/chinotech
╚═════════════════════════════════════════════
'''
print(Fore.LIGHTCYAN_EX+info)

print(Fore.LIGHTBLUE_EX+logo)
print(Fore.RED+info)
colorama.init()

text = "\033[0;91m[+] This program will scrape (Https,Socks4,Socks5) proxies into separate files"
for x in text:
sleep(0.02) # In seconds
sys.stdout.write(x)
sys.stdout.flush()
print()
ready = input(f'{Fore.YELLOW} This program will autoscrape (HTTP,SOCKS4,SOCK5) proxies into separate files (Hit "ENTER" To Continue) ')

url = 'https://api.openproxylist.xyz/http.txt'
r = requests.get(url)
results = r.text
with open ("http.txt", "w") as file:
file.write(results)

url = 'https://api.openproxylist.xyz/socks4.txt'
r = requests.get(url)
results = r.text
with open ("socks4.txt", "w") as file:
file.write(results)

url = 'https://api.openproxylist.xyz/socks5.txt'
r = requests.get(url)
results = r.text
with open ("socks5.txt", "w") as file:
file.write(results)

whatproxy = int(input('''\033[0;37m
[+] Which type of proxy do you need?
[1] Https
[2] Socks4
[3] Socks5
\n
[Enter a No. (1-3) ]> '''))

if whatproxy == 1:
out_file = "Https Proxies.txt"
proxies = open(out_file,'wb')
r1 = requests.get('https://api.openproxylist.xyz/http.txt')
proxies.write(r1.content)
length = []
length.append(r1.content)
length = length[0].splitlines()
length1 = len(length)
print("Completed! Successfully added {} proxies, Check the directory where this program is located".format(length1))
os.system('pause')
sys.exit()

elif whatproxy == 2:
r1 = requests.get('https://api.openproxylist.xyz/socks4.txt')
out_file = "Socks4 Proxies.txt"
proxies = open(out_file,'wb')
proxies.write(r1.content)
length = []
length.append(r1.content)
length = length[0].splitlines()
length1 = len(length)
print("Completed! Successfully added {} proxies, Check the directory where this program is located".format(length1))
os.system('pause')
sys.exit()

elif whatproxy == 3:
r1 = requests.get('https://api.openproxylist.xyz/socks5.txt')
out_file = "Socks5 Proxies.txt"
proxies = open(out_file,'wb')
proxies.write(r1.content)
length = []
length.append(r1.content)
length = length[0].splitlines()
length1 = len(length)
print("Completed! Successfully added {} proxies, Check the directory where this program is located".format(length1))
os.system('pause')
sys.exit()


else:
print("Not a valid choice!")

0 comments on commit a7168d0

Please sign in to comment.