Files
SnarfCode/scripts/test_urls_quick.py

12 lines
343 B
Python

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}")