Verify onionlinks.
by FliP - 11-01-26, 08:19 PM
#1
Hello, I've created a simple Python script to check whether a .onion link is active or dead before opening it manually. This script uses the requests module with a Tor proxy (Port 9050).

import requests

def check_onion(url):
proxies = {'http': 'socks5h://localhost:9050', 'https': 'socks5h://localhost:9050'}

try:
response = requests.get(url, proxies=proxies, timeout=10)
print(f"Status {url}: Online (Code: {response.status_code})")
except:
print(f"Status {url}: Offline/Error")

# Contoh penggunaan
check_onion('http://vww6ybal4bd7szmgncyruucpgfkqahzddi37ktce3ah7ccm7nnnsczyd.onion')
Reply


Forum Jump:


 Users browsing this thread: 1 Guest(s)