|
@@ -97,7 +97,7 @@ def main():
|
|
|
try:
|
|
try:
|
|
|
time_out = False
|
|
time_out = False
|
|
|
print(day_obj.cityid)
|
|
print(day_obj.cityid)
|
|
|
- today_url = f"http://v1.yiketianqi.com/api?unescape=1&version=v62&appid=69334222&appsecret=2ME6U58N&cityid={day_obj.cityid}"
|
|
|
|
|
|
|
+ today_url = f"http://gfeljm.tianqiapi.com/api?unescape=1&version=v62&appid=69334222&appsecret=2ME6U58N&cityid={day_obj.cityid}"
|
|
|
today_response = requests.get(today_url, headers=headers, timeout=10)
|
|
today_response = requests.get(today_url, headers=headers, timeout=10)
|
|
|
if today_response.status_code == 200:
|
|
if today_response.status_code == 200:
|
|
|
today_data = json.loads(today_response.text)
|
|
today_data = json.loads(today_response.text)
|