Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started