-
Notifications
You must be signed in to change notification settings - Fork 1
/
ProxyScraper.py
28 lines (24 loc) · 2.3 KB
/
ProxyScraper.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
#!usr/bin/env python3
import sys
import requests
import proxyscrape
import threading
banner = """
\33[38;5;214m██████╗ ██████╗ ██████╗ ██╗ ██╗██╗ ██╗ ███████╗ ██████╗██████╗ █████╗ ██████╗ ███████╗██████╗
\33[38;5;214m██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝╚██╗ ██╔╝ ██╔════╝██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗
\33[38;5;208m██████╔╝██████╔╝██║ ██║ ╚███╔╝ ╚████╔╝ ███████╗██║ ██████╔╝███████║██████╔╝█████╗ ██████╔╝
\33[38;5;208m██╔═══╝ ██╔══██╗██║ ██║ ██╔██╗ ╚██╔╝ ╚════██║██║ ██╔══██╗██╔══██║██╔═══╝ ██╔══╝ ██╔══██╗
\33[38;5;202m██║ ██║ ██║╚██████╔╝██╔╝ ██╗ ██║ ███████║╚██████╗██║ ██║██║ ██║██║ ███████╗██║ ██║
\33[38;5;202m╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝
"""
print(banner)
def downloadproxies():
collector = proxyscrape.create_collector('my-collector', ['http', 'socks4', 'socks5'])
proxies = collector.get_proxies()
file = open("proxies.txt","w")
file.write(str(proxies))
file.close()
print(" \33[38;5;214mSuccessfully saved proxies list!\n\033[0m")
if __name__ == "__main__":
thread = threading.Thread(target=downloadproxies)
thread.start()