{var_dump()}

最新查zhwhrq,无需抓包

  [复制链接]
131853 53
python  蓝钻会员  2024-7-30 10:33:21  | 显示全部楼层
Windows上面咋报错了哩。
Exception has occurred: SSLErrorHTTPSConnectionPool(host='wx.abchina.com', port=443): Max retries exceeded with url: /instH5/respectStage.html (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1000)')))
ssl.SSLError: [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1000)
During handling of the above exception, another exception occurred:
urllib3.exceptions.SSLError: [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1000)
The above exception was the direct cause of the following exception:
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='wx.abchina.com', port=443): Max retries exceeded with url: /instH5/respectStage.html (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1000)')))
During handling of the above exception, another exception occurred:
  File "D:\zhwhrq.py", line 8, in initialize_cookies
    response = requests.get(url, verify=False)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\zhwhrq.py", line 59, in main
    cookies = initialize_cookies()
              ^^^^^^^^^^^^^^^^^^^^
  File "D:\zhwhrq.py", line 95, in
    main()
requests.exceptions.SSLError: HTTPSConnectionPool(host='wx.abchina.com', port=443): Max retries exceeded with url: /instH5/respectStage.html (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1000)')))
qmqsyz  白金会员   楼主| 2024-7-30 11:28:51  | 显示全部楼层
python 发表于 2024-7-30 10:33
Windows上面咋报错了哩。
Exception has occurred: SSLErrorHTTPSConnectionPool(host='wx.abchina ...
python版本过高的原因,修改了下代码,重新试试。
python  蓝钻会员  2024-7-30 14:14:58  | 显示全部楼层
qmqsyz 发表于 2024-7-30 11:28
python版本过高的原因,修改了下代码,重新试试。
多谢多谢,可以用啦,辛苦维护代码。
胖墩子  金卡会员  2024-7-31 16:59:16  | 显示全部楼层
resCode: 4003 resMsg: 未查询到用户手机号 这个问题怎么解决
为啥显示未查询到手机号
Jonesli  银卡会员  2024-8-6 14:35:45  | 显示全部楼层
用了下,很方便,楼主厉害
Jonesli 发表于 2024-8-6 14:35
用了下,很方便,楼主厉害
怎么试的呀?我连运行都不会
python  蓝钻会员  2024-8-6 22:29:48  | 显示全部楼层
我秦始皇打钱 发表于 2024-8-6 15:07
怎么试的呀?我连运行都不会
安装Python,requests库,然后运行楼主的代码。
Jonesli  银卡会员  2024-8-7 16:21:18  | 显示全部楼层
我秦始皇打钱 发表于 2024-8-6 15:07
怎么试的呀?我连运行都不会
按下面楼层说发来就行
gpx  钻石会员  2024-8-8 22:24:57  | 显示全部楼层
飞客3238703 发表于 2024-7-29 23:56
没成功,不懂代码,不知道哪里的问题
[root@i-89516c2a ~]# python abc.py
Traceback (most recent call last):
File "abc.py", line 3, in
  import requests
ImportError: No module named requests
装完python后还得装一个经典的第三方库requests
pip install requests
python  蓝钻会员  2024-8-8 22:34:59  | 显示全部楼层
啦啦啦12321 发表于 2024-8-8 20:06
闪退是为啥呢
在黑窗口里运行,看看报错信息。不要简单的双击,有可能没有阻止退出
ggsg122  黑钻会员  2024-8-10 23:38:25  | 显示全部楼层
urllib3.exceptions.SSLError: [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1006)
python 3.11.5报错
香园围游子  金卡会员  2024-8-11 16:41:21  | 显示全部楼层
代码没问题,感谢楼主 最新查zhwhrq,无需抓包
半白  钻石会员  2024-8-16 06:46:02  | 显示全部楼层
4003  身份证号无效
Jonesli  银卡会员  2024-8-16 09:03:38  | 显示全部楼层
半白 发表于 2024-8-16 06:46
4003  身份证号无效
一样的问题,会不会渠道封了

本版积分规则

关闭头条报


快捷回复

快速评论 返回顶部 返回列表