It's version 0.7.1 Я думаю эта последная версия так как из-за обновления системы и низкого спроса было мной решено забросить ее на некоторое время, если не на всегда

This commit is contained in:
Niken
2026-03-17 20:30:46 +03:00
parent c49b00ba15
commit 034223a52b
4 changed files with 41 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
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'])+"%")