mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-04-24 11:35:57 +02:00
362a6e2ceb
Former-commit-id: 8ed321f2ba
14 lines
381 B
Python
14 lines
381 B
Python
import requests
|
|
import traceback
|
|
|
|
try:
|
|
print("Testing adsb.lol...")
|
|
r = requests.get("https://api.adsb.lol/v2/lat/39.8/lon/-98.5/dist/100", timeout=15)
|
|
print(f"Status: {r.status_code}")
|
|
d = r.json()
|
|
print(f"Aircraft: {len(d.get('ac', []))}")
|
|
except Exception as e:
|
|
print(f"Error type: {type(e).__name__}")
|
|
print(f"Error: {e}")
|
|
traceback.print_exc()
|