Created
March 19, 2022 15:22
-
-
Save DataSolveProblems/876bad5b60074ee0369aaede76321d07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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