Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

抖音直播发送错误URL Error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)> #697

Open
2 tasks done
KesionX opened this issue Oct 15, 2024 · 2 comments

Comments

@KesionX
Copy link

KesionX commented Oct 15, 2024

⚠️ 确认是否已存在类似问题

  • 我已经搜索过issues,没有找到类似问题

🔧 运行方式

使用源代码运行

🐍 如果是使用源代码运行,请选择你的Python环境版本

Python 3.10

⚠️ 确认是否已经重试多次

  • 我已经尝试过多次,仍然出现问题

🕹 复现步骤

录制的直播间地址是:https://live.douyin.com/106045055465
使用的录制格式是:ts

😯 问题描述

URL_config.ini
https://live.douyin.com/106045055465

运行环境:macOS

抖音cookie从https://live.douyin.com/106045055465进入获取,如下图:
image

📜 错误信息

传入地址: https://live.douyin.com/106045055465
URL Error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)>
第一次获取数据失败:https://live.douyin.com/106045055465 准备切换解析方法'NoneType' object has no attribute 'group'
URL Error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)>
错误信息: Expecting value: line 1 column 1 (char 0) 发生错误的行数: 192
序号1 网址内容获取失败,进行重试中...获取失败的地址是:('原画', 'https://live.douyin.com/106045055465', '')

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Douyin live broadcast sent an error URL Error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)>

@ihmily
Copy link
Owner

ihmily commented Oct 18, 2024

@KesionX

ssl证书验证的问题,控制台执行这个命令试试

bash /Applications/Python*/Install\ Certificates.command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants