Last active
July 26, 2021 02:29
-
-
Save raganmd/dc929e6625445e9910ad19bd52ee3974 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 | |
dataURL = 'https://www.purpleair.com/json?show=182&fbclid=IwAR17uHJ8zpHcj7nwipL7_KRleF8uj9DEZ3Gqz-8AfQwVVC7rYdfWC61aM0Q' | |
rawData = requests.get(dataURL) | |
msg = rawData.json() | |
results = msg.get('results') | |
for eachDict in results: | |
for eachKey, eachVal in eachDict.items(): | |
print(eachKey, eachVal) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment