mos9527 / bilibili-toolman

配合 GH Actions 的哔哩哔哩创作中心 Python API / 搬运工具

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

下载视频证书问题

ahxinin opened this issue · comments

错误日志:
[ 2021-06-06 13:36:21 youtube DEBUG ] [youtube] fypO-lbSNno: Downloading API JSON
[ 2021-06-06 13:36:21 youtube ERROR ] ERROR: Unable to download API page: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)> (caused by URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))
[ 2021-06-06 13:36:21 BiliSession ERROR ] Cannot download specified resource - ERROR: Unable to download API page: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)> (caused by URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))
[ 2021-06-06 13:36:21 root WARNING ] Dirty flag set,not all tasks are done properly

请教一下,如何解决

可以试试加参数 --opts "no_check_certificate=True" 跳过 SSL 检测

--youtube "https://www.youtube.com/watch?v=fypO-lbSNno" --opts "no_check_certificate=True"

下载最新代码,使用以下命令,还是相同的错误

bilibili-toolman.py --cookies "" --youtube "https://www.youtube.com/watch?v=fypO-lbSNno" --opts "no_check_certificate=True"

确认下安装了certifi(urllib and “SSL: CERTIFICATE_VERIFY_FAILED” Error)
或者删掉https?:bilibili-toolman.py --cookies "" --youtube "http://www.youtube.com/watch?v=fypO-lbSNno" --opts "no_check_certificate=True"