Those who opted for python training-How many of you are not able to access the API from the github that sir asked us to refer to for the weather project and how to solve that(https://goweather.herokuapp.com/weather/Curitiba) not working
Give me some time , i will discuss it with my team then come to you with a suitable solution.
Hi , Try with below code
response = requests.get(‘https://goweather.herokuapp.com/weather/panjim’)
data = json.loads(response.text)
temperature = data.get(‘temperature’)
wind = data.get(‘wind’)
detail = data.get(‘description’)
By using this link to find the weather description, you can change the name of the city accordingly.
Do let me know if it helps you.
only some cities weather will be working with this API.