This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
#Allows us to take the city name from the user | |
city = input('Which city would you like to know the weather for ?: ') | |
url = "http://api.openweathermap.org/data/2.5/weather?appid=fc121d2e5a701f5309e46aa3e75cb8eb&q=" + city | |
json_data = requests.get(url).json() |