mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-04-29 06:26:13 +02:00
6281085045
Former-commit-id: 3b8912a8f67efd51c08cc6f4c77d43266b8fdc1b
11 lines
301 B
Python
11 lines
301 B
Python
import requests, json
|
|
|
|
url = "https://api.us.socrata.com/api/catalog/v1?domains=data.cityofnewyork.us&q=camera"
|
|
try:
|
|
r = requests.get(url)
|
|
res = r.json().get('results', [])
|
|
for d in res:
|
|
print(f"{d['resource']['id']} - {d['resource']['name']}")
|
|
except Exception as e:
|
|
print(e)
|