import requests import urllib3 urllib3.disable_warnings() for url in ["https://harvester.snarfnet.net", "https://jenkins.snarfnet.net", "http://140.44.4.70:8050"]: try: r = requests.get(url, verify=False, timeout=5) print(f"{url} -> HTTP {r.status_code}") except Exception as e: print(f"{url} -> ERROR: {e}")