小BのAPIGPT - FreeChatGPT (jixiaob.cn)
https://123-13-200-169.d.123pan.cn:30443/123-621/933a4391/1812791003-0/933a4391363199bd6cb83338d44ed66d?v=1&t=1664950666&s=3c2bab3132811b30f7b5cd6a1b23d415&filename=GenshinImpact_3.1.50_beta%E5%AF%86%E7%A0%81bambi5.top.zip&d=f4b10f30
https://rainkavik-my.sharepoint.com/:u:/p/fei/ETk-dBhFbxdFlCkq9mgy7CkBLZ25i9V9WM0LeLkW-srkFg?e=IcJJ2
import requests from time import sleep from datetime import datetime def xiaoyuanwang_test(): try: res = requests.get('https://baidu.com') print(datetime.now(), '网络正常。') except BaseException as e: print(e) print('连接断开!正在尝试重连...') login_url = "http://219.226.127.250:801/eportal/?c=ACSetting&a=Login&protocol=http:&hostname=219.226.127.250&port=&iTermType=1&wlanuserip=&wlanacip=&wlanacname=&redirect=&session=&ssid=&vlanid=&queryACIP=0&jsVersion=1.3.8&isTelephone=0&DDDDD=,0,zhaozhengyang5929&upass=LJmi0608&R1=0&R2=&R6=0&v6ip=¶=00&0MKKey=123456" requests.get(login_url) try: res = requests.get('https://baidu.com') print('重连成功!') return True except BaseException as e: print('重连失败!') print(e) return False if __name__ == '__main__': count=0 while 1: flag = xiaoyuanwang_test() if flag: count+=1 if count>10: exit() sleep(60)