mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-04-24 03:26:06 +02:00
362a6e2ceb
Former-commit-id: 8ed321f2ba
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)
|