Question: I am using openweather api in python and the request module is not working or whatever. I just get an error. Does anyone know how

I am using openweather api in python and the request module is not working or whatever. I just get an error. Does anyone know how to install requests module or something?

import requests

api_address='http://api.openweathermap.org/data/2.5/uvi?appid=12c689a823d9b12f41a4d95f56894a64&' lon_user = input('longtidue') lon = 'lon=' + lon_user lat_user = input('latitude') lat = 'lat=' + lat_user + '&' url = api_address + lat + lon json_data = requests.get(url).json() format_add = json_data['value'] print(format_add)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!