Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to GET specific data from an API

Hello I want to get forecastings for London for 3 days from https://www.metaweather.com/api/ using python but when I use this url: ‘https://www.metaweather.com/api/location/44418/2013/4/27/’ I get jason with forecasts for different times of this day. I want one forecasting for this day.

Could you help me?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

import json
import requests
r=requests.get('https://www.metaweather.com/api/location/44418/2013/4/27/').text
weather=json.loads(r)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading