lexicalspace commited on
Commit
df57cfc
·
verified ·
1 Parent(s): 9a6119e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -8,9 +8,10 @@ from concurrent.futures import ThreadPoolExecutor, as_completed
8
  # ==============================================================================
9
  # ⚙️ CONFIGURATION
10
  # ==============================================================================
11
- TARGET_COUNT = 80 # We want exactly 10 working proxies
12
- TIMEOUT_SEC = 5 # Reject if slower than 5 seconds
13
- CHECK_INTERVAL = 120 # Re-check every 5 minutes (300 seconds)
 
14
 
15
  # Shared Memory (The "Live File")
16
  proxy_storage = {
@@ -62,9 +63,12 @@ def worker_loop():
62
  raw_proxies = []
63
  sources = [
64
  "https://raw.githubusercontent.com/TheSpeedX/SOCKS-List/master/http.txt",
65
- "https://raw.githubusercontent.com/monosans/proxy-list/main/proxies/http.txt",
66
- "https://api.proxyscrape.com/v2/?request=getproxies&protocol=http&timeout=5000&country=all&ssl=all&anonymity=all"
67
- ]
 
 
 
68
  for s in sources:
69
  try:
70
  r = requests.get(s, timeout=10)
 
8
  # ==============================================================================
9
  # ⚙️ CONFIGURATION
10
  # ==============================================================================
11
+ TARGET_COUNT = 100 # We want exactly 10 working proxies
12
+ TIMEOUT_SEC = 3 # Reject if slower than 5 seconds
13
+ CHECK_INTERVAL = 120
14
+ MAX_THREADS = 1000# Re-check every 5 minutes (300 seconds)
15
 
16
  # Shared Memory (The "Live File")
17
  proxy_storage = {
 
63
  raw_proxies = []
64
  sources = [
65
  "https://raw.githubusercontent.com/TheSpeedX/SOCKS-List/master/http.txt",
66
+ "https://raw.githubusercontent.com/monosans/proxy-list/main/proxies/http.txt",
67
+ "https://api.proxyscrape.com/v2/?request=getproxies&protocol=http&timeout=5000&country=all&ssl=all&anonymity=all",
68
+ "https://raw.githubusercontent.com/shiftytr/proxy-list/master/proxy.txt",
69
+ "https://raw.githubusercontent.com/hookzof/socks5_list/master/proxy.txt"
70
+ ]
71
+
72
  for s in sources:
73
  try:
74
  r = requests.get(s, timeout=10)