Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DataSolveProblems/876bad5b60074ee0369aaede76321d07 to your computer and use it in GitHub Desktop.
Save DataSolveProblems/876bad5b60074ee0369aaede76321d07 to your computer and use it in GitHub Desktop.
import requests
url = 'https://data.taipei/api/v1/dataset/296acfa2-5d93-4706-ad58-e83cc951863c?scope=resourceAquire&fbclid=IwAR0RXFyb5NsRdZvuTmUG-IN3t6WnczaPuHWOeknehOerncohO0c5WwAJKd8'
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0'
}
response = requests.get(url, headers=headers)
if response.status_code == 200:
print(response.json())
else:
print(response.reason)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment