import requests def get_weather(city: str): return requests.get(f"https://api.weatherapi.com/v1/current.json?key=becad22574854f91aea163009261703&q={city}&aqi=no").json() if __name__ == "__main__": print(get_weather("Minsk")['location']['name']) print(get_weather("Minsk")['current']['temp_c']) print(get_weather("Minsk")['current']['condition']["text"]) print(get_weather("Minsk")['current']['wind_kph']) print(str(get_weather("Minsk")['current']['humidity'])+"%")