搜了很多的博客,很多方法也试了,包括且不限于
使用http1.0来进行request
更新python的requests库
修改源码
…
都没有解决问题
但是不能不解决啊,暂时提供一个解决办法
while True:try:......expect:......
代码是要跑的,日子是要过的。
所以偶尔断连也是没问题的。
放一下我的nohup.out日志:
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=13, tm_min=10, tm_sec=21, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=13, tm_min=11, tm_sec=15, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=13, tm_min=15, tm_sec=38, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=13, tm_min=20, tm_sec=10, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=13, tm_min=25, tm_sec=39, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=13, tm_min=27, tm_sec=11, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=13, tm_min=36, tm_sec=2, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=13, tm_min=42, tm_sec=49, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=13, tm_min=44, tm_sec=8, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=13, tm_min=56, tm_sec=57, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=0, tm_sec=38, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=13, tm_sec=17, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=17, tm_sec=56, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=24, tm_sec=45, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=28, tm_sec=15, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=30, tm_sec=40, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=32, tm_sec=31, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=36, tm_sec=51, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=38, tm_sec=36, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=40, tm_sec=31, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=47, tm_sec=38, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=14, tm_min=52, tm_sec=47, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=0, tm_sec=3, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=2, tm_sec=49, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=12, tm_sec=19, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=14, tm_sec=4, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=15, tm_sec=49, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=17, tm_sec=43, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=21, tm_sec=39, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=33, tm_sec=39, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=35, tm_sec=3, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=39, tm_sec=24, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=41, tm_sec=25, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=42, tm_sec=43, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
time.struct_time(tm_year=2021, tm_mon=10, tm_mday=25, tm_hour=15, tm_min=56, tm_sec=14, tm_wday=0, tm_yday=298, tm_isdst=0)
断联了
很魔幻的解决方法,但他还是在运行。