Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import json
- def get_data_for_city(city_name):
- response = requests.get(f'https://skopje.pulse.eco/rest/dataRaw?sensorId=1001&type=pm10&from=2017-03-15T02:00:00%2b01:00&to=2017-03-19T12:00:00%2b01:00')
- js = json.loads(response.text)
- for obj in js:
- print(obj)
- if __name__ == "__main__":
- get_data_for_city('skopje')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement