name: auto-python-ile-port-9150-socks5-baglantisi-k title: "Auto Python Ile Port 9150 Socks5 Baglantisi K" tags: [agents, ai, python] description: "Autonomous solution for: Python ile port 9150 SOCKS5 baglantisi kontrol et ve sonucu ekrana yaz. Solved in 1 iteration(s) using dolphin-llama3 + VS Code loop." version: 1.0.0 author: hermes-auto license: MIT metadata: hermes: tags: [autonomous, auto-generated, dolphin, vscode, loop] audience: user
related_skills: [vscode-otomasyon, gorsel-onaylama]
Otomatik Cozum: Python ile port 9150 SOCKS5 baglantisi kontrol et ve sonucu ekrana yaz
Olusturuldu: 2026-06-03 06:59 | 1. turde cozuldu
Problem
Python ile port 9150 SOCKS5 baglantisi kontrol et ve sonucu ekrana yaz
Cozum Kodu
import requests
def kontrol_et():
url = "http://localhost:9150"
try:
response = requests.get(url, timeout=5)
if response.status_code == 200:
print("Bağlantı başarılı")
else:
print(f"Bağlantı başarısız. HTTP kodu: {response.status_code}")
except requests.exceptions.RequestException as e:
print(f"Bağlantı yapmak için zaman aşımına neden oldu: {e}")
kontrol_et()
Kullanim
python hermesloop.py "Python ile port 9150 SOCKS5 baglantisi kontrol et ve sonucu ekrana yaz"