proxy checker

  • Konuyu Başlatan Konuyu Başlatan arwezxd
  • Başlangıç tarihi Başlangıç tarihi

arwezxd

Diamond Üye
Katılım
15 Tem 2025
Mesajlar
525
Beğeniler
139
Yaş
22
İletişim
import requests
import threading
from colorama import Fore, init
import os
init(autoreset=True)
class ChesterProxyChecker:
def __init__(self, source_file="proxy_list.txt"):
self.source_file = source_file
self.output_file = "live_proxies.txt"
self.timeout = 3 #
self.threads = 100
self.live_count = 0
def check(self, proxy):
test_url = " "
proxy_dict = {
"http": f"http://{proxy}",
"https": f"http://{proxy}"
}

try:
response = requests.get(test_url, proxies=proxy_dict, timeout=self.timeout)

if response.status_code in [200, 429]:
print(f"{Fore.GREEN}[+] CANLI | {proxy} | Gecikme: {response.elapsed.total_seconds()}s")
with open(self.output_file, "a") as f:
f.write(proxy + "\n")
self.live_count += 1
else:
print(f"{Fore.RED}[-] ÖLÜ | {proxy} (Kod: {response.status_code})", end="\r")
except:
print(f"{Fore.YELLOW}[x] HATA | {proxy} (Zaman Aşımı/Bağlantı Kesildi)", end="\r")
def run(self):
if not os.path.exists(self.source_file):
print(f"{Fore.RED}[!] {self.source_file} bulunamadı! Önce proxy çekmelisin.")
return
with open(self.source_file, "r") as f:
proxies = f.read().splitlines()
print(f"{Fore.CYAN}=== CHESTER LUA PROXY CHECKER BAŞLATILDI ===")
print(f"[*] Toplam {len(proxies)} proxy işleniyor...")
threads_list = []
for p in proxies:
t = threading.Thread(target=self.check, args=(p,))
t.start()
threads_list.append(t)
if len(threads_list) >= self.threads:
for t in threads_list: t.join()
threads_list = []
print(f"\n{Fore.MAGENTA}[!] Tarama bitti. Toplam {self.live_count} canlı proxy bulundu!")
print(f"{Fore.MAGENTA}[!] Canlı listesi: {self.output_file}")


if __name__ == "__main__":
# 'proxy_list.txt' içine topladığın ham proxy'leri koy
checker = ChesterProxyChecker("valid_proxies.txt")
checker.run()
 

Şuanda konuyu görüntüleyen kullanıcılar

Geri
Üst Alt