ALDDS / test_network.py
LovnishVerma's picture
Upload 5 files
d2c798d verified
Raw
History Blame Contribute Delete
444 Bytes
import requests
try:
print("Testing basic internet access...")
google_check = requests.get("https://www.google.com", timeout=10)
print(f"Google status: {google_check.status_code}")
print("Testing Telegram endpoint access...")
telegram_check = requests.get("https://api.telegram.org", timeout=10)
print(f"Telegram status: {telegram_check.status_code}")
except Exception as e:
print(f"❌ Network blocked: {e}")