curl 'https://data.weather.gov.hk/weatherAPI/opendata/earthquake.php?lang=en'
import requests
resp = requests.get(
"https://data.weather.gov.hk/weatherAPI/opendata/earthquake.php",
params={
'lang': 'en',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("gov")
result = api.fetch("earthquake.php", lang="en")
for item in result:
print(item)
const resp = await fetch("https://data.weather.gov.hk/weatherAPI/opendata/earthquake.php?lang=en");
const data = await resp.json();