From 8efc57e6556dbdd0f61d1cd345726fde95285bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Thu, 16 Jan 2025 08:28:19 +0800 Subject: [PATCH] Update weather.py --- bin/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/weather.py b/bin/weather.py index e677660..f356afe 100644 --- a/bin/weather.py +++ b/bin/weather.py @@ -61,7 +61,7 @@ def get_current_city(): logging.error("JSON decode error when parsing current city data: %s", e) return None -def getWeath(city='101060101'): +def getWeath(city='101060111'): headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36', 'Referer': 'http://www.weather.com.cn/'