Code Monkey home page Code Monkey logo

douyin-live's Introduction

想我了? 请star我

这是一个普普通通的仓库,感谢github
个人博客地址:https://xiaoshen.blog.csdn.net/
CSDN

python源:

https://pypi.tuna.tsinghua.edu.cn/simple/ 清华
http://pypi.doubanio.com/simple/ 豆瓣
http://mirrors.aliyun.com/pypi/simple/ 阿里
https://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学
http://mirrors.163.com/pypi/simple/ 网易

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/

npm源:

常用源地址:
官方: http://www.npmjs.org
阿里: https://registry.npmmirror.com

查看源地址

npm config get registry

设置源地址:

npm config set registry http://www.npmjs.org

douyin-live's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

douyin-live's Issues

[WinError 10054] 远程主机强迫关闭了一个现有的连接

2024-03-07 21:51:59,372 - ERROR - [onError] [webSocket Error事件] [房间Id:7343582735534967602]
2024-03-07 21:51:59,372 - ERROR - [WinError 10054] 远程主机强迫关闭了一个现有的连接。 - goodbye

有时候读取40分钟就被终止了有时候读取2分钟就被终止了

您好,我想在线发送弹幕

您好,我最近使用selenium实现了在虚拟机上,用浏览器去发送弹幕,想请教有没有更好的方法去发送弹幕信息,不会被抖音吞掉。

websocket 连接失败

2024-02-11 21:52:33,433 - ERROR - [onError] [webSocket Error事件] [房间Id:xxx]
2024-02-11 21:52:33,434 - ERROR - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1000) - goodbye

大佬问下,我连接不到直播间,请问该怎么办啊?

配置文件问题

配置文件里有下面三个参数,分别在哪里获取?不使用这三个参数还能实时查看弹幕动态吗?安装依赖后,我只修改了LIVE_ROOM_URL的值,其它都没动,运行效果如下面的图,最后一个问题,你的CSDN博客里有好多文章,但我只对抖音直播间爬虫感兴趣,有没有相关的详细教程,谢谢
image
image

获取不到弹幕啊

python main.py
获取线上数据失败:URL has an invalid label.
unopened http senders
获取到的直播数据是:点赞:0, 评论: 0, 礼物价值: 0
主播账号信息: {'id_str': '62426139256', 'sec_uid': 'MS4wLjABAAAArKyDt0IEEnThKnSgcnGu12-DgUbBt4J0J0kzbFkZE0Y', 'nickname': '毛爸美食记', 'avatar_thumb': {'url_list': ['https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_97a201158859a73fba4cb064308ea9fa.jpeg?from=3067671334', 'https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_97a201158859a73fba4cb064308ea9fa.jpeg?from=3067671334', 'https://p26.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_97a201158859a73fba4cb064308ea9fa.jpeg?from=3067671334']}, 'follow_info': {'follow_status': 0, 'follow_status_str': '0'}}
直播流m3u8链接地址是: https://pull-hls-l26.douyincdn.com/third/stream-402578641154212326_or4.m3u8?expire=65991550&sign=9114b84990e8386c925fc09faeb7ade2
直播流FLV地址是: https://pull-flv-l26.douyincdn.com/third/stream-402578641154212326_sd.flv?expire=65991550&sign=ec133cd5594f47073f0fb848493b71fd
间隔10秒更新一下排行
未开启直播礼物排名

爬不到弹幕的问题,我也在找解决办法,应该是要获取登录状态,然后拿去链接ws

很难得重现这个问题,重现条件是,当前电脑浏览器打开抖音直播,弹窗需要登录,这个时候,是爬取不到弹幕的。
为什么需要会弹窗登录呢?已知,这是一个直播公司,公司只有一个光猫,这个公司应该很多电脑打开了抖音直播,ip被和谐了?但是重启光猫了也没有用。并且这个公司其他电脑打开网页的抖音直播,都是强制弹窗 需要登录。
一般来说浏览器打开抖音直播,是不需要登录,就能看到右侧的弹幕信息,这也是爬虫实现的原理,因为目前的爬虫,都是不登录的。

运行一会就会退出

2024-01-30 15:31:52,226 - ERROR - [onError] [webSocket Error事件] [房间Id:7329754198512290570]
2024-01-30 15:31:52,226 - ERROR - Connection to remote host was lost. - goodbye
2024-01-30 15:31:52,226 - INFO - 直播抓取时长:5382.485597848892,点赞数量总计:4, 评论数量总计: 26, 礼物数量总计:0, 礼物价值总计: 0
2024-01-30 15:31:52,226 - INFO - [onClose] [webSocket Close事件] [房间Id:7329754198512290570]

进程已结束,退出代码为 143 (interrupted by signal 15: SIGTERM)

dy.proto文件是怎么得到的,

上网查有说是通过js代码一个一个编写的,但这个js代码我没找到,除此之外还有什么办法可以得到proto文件吗

运行报错

缺少三个依赖,分别是LIVE_GIFT_LIST、GAME_UUID、LIVE_SEND_INTERVAL
LIVE_GIFT_LIST=[""]
GAME_UUID=''
LIVE_SEND_INTERVAL=''
手动配置后只能获取礼物排名,无法监听其他信息

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.