Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from concurrent.futures import ThreadPoolExecutor, as_completed
|
|
| 12 |
TARGET_COUNT = 200 # Keep 20 Elite Proxies
|
| 13 |
TIMEOUT_SEC = 3 # ⚡ Speed: Kill connection if no response in 3s (was 5s)
|
| 14 |
CHECK_INTERVAL = 10 # Re-check every 2 mins
|
| 15 |
-
MAX_THREADS =
|
| 16 |
|
| 17 |
# Shared Memory
|
| 18 |
proxy_storage = {
|
|
@@ -49,6 +49,14 @@ def worker_loop():
|
|
| 49 |
"https://api.proxyscrape.com/v2/?request=getproxies&protocol=http&timeout=5000&country=all&ssl=all&anonymity=all",
|
| 50 |
"https://raw.githubusercontent.com/shiftytr/proxy-list/master/proxy.txt",
|
| 51 |
"https://raw.githubusercontent.com/hookzof/socks5_list/master/proxy.txt"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
]
|
| 53 |
|
| 54 |
print(" 📥 Downloading huge proxy lists into RAM...")
|
|
|
|
| 12 |
TARGET_COUNT = 200 # Keep 20 Elite Proxies
|
| 13 |
TIMEOUT_SEC = 3 # ⚡ Speed: Kill connection if no response in 3s (was 5s)
|
| 14 |
CHECK_INTERVAL = 10 # Re-check every 2 mins
|
| 15 |
+
MAX_THREADS = 2000 # 🚀 AGGRESSIVE: 300 checks at once (Uses more RAM/CPU)
|
| 16 |
|
| 17 |
# Shared Memory
|
| 18 |
proxy_storage = {
|
|
|
|
| 49 |
"https://api.proxyscrape.com/v2/?request=getproxies&protocol=http&timeout=5000&country=all&ssl=all&anonymity=all",
|
| 50 |
"https://raw.githubusercontent.com/shiftytr/proxy-list/master/proxy.txt",
|
| 51 |
"https://raw.githubusercontent.com/hookzof/socks5_list/master/proxy.txt"
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
"https://api.proxyscrape.com/v2/?request=getproxies&protocol=http&timeout=5000&country=all&ssl=all&anonymity=all",
|
| 55 |
+
"https://raw.githubusercontent.com/shiftytr/proxy-list/master/proxy.txt",
|
| 56 |
+
|
| 57 |
+
"https://raw.githubusercontent.com/clarketm/proxy-list/master/proxy-list-raw.txt",
|
| 58 |
+
"https://raw.githubusercontent.com/sunny9577/proxy-scraper/master/proxies.txt"
|
| 59 |
+
]
|
| 60 |
]
|
| 61 |
|
| 62 |
print(" 📥 Downloading huge proxy lists into RAM...")
|