Douyin-Bot icon indicating copy to clipboard operation
Douyin-Bot copied to clipboard

ret:-1,这个问题怎么解决

Open Lvmonz opened this issue 7 years ago • 2 comments

采用方式 0 获取截图 shell input swipe 540 1265 540 965 200 shell screencap -p /sdcard/autojump.png pull /sdcard/autojump.png . <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1045)> {'ret': -1} shell input swipe 540 1265 540 965 200 shell screencap -p /sdcard/autojump.png pull /sdcard/autojump.png . <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1045)> {'ret': -1} shell input swipe 540 1265 540 965 200

Lvmonz avatar Oct 07 '18 17:10 Lvmonz

已解决,是因为python2.9以后验证ssl证书的问题,在全局插入这样的代码取消对ssl证书的验证就好 import ssl ssl._create_default_https_context = ssl._create_unverified_context

Lvmonz avatar Oct 08 '18 13:10 Lvmonz

0.0 我这里是 404:Not Found,这咋整。。

masite avatar May 21 '21 02:05 masite