Comments (8)
斗鱼已经开放了他们的 弹幕协议 和 第三方平台 API,可以参考。
具体人气值,可以轮询 API 获取:
http://open.douyucdn.cn/api/RoomApi/room/{room_id}
例如 http://open.douyucdn.cn/api/RoomApi/room/67373
from douyucrawler.
额,谢谢大神的回复~
实际上我是想找到心跳包服务器的ip,以及发送心跳包数据给服务器,模拟在线人气,公开的api可能不太够用,不知道有没有方式可以抓到心跳服务器的地址,以及发送的数据~
(•̀⌄•́)
from douyucrawler.
我认为,心跳包只是用来确认客户端与服务端是否断连。一般服务器并不会通过心跳包来确定客户端数量,即人气数,通常会通过真实连接数来确定。
from douyucrawler.
对的,所以理论上,连接到心跳服务器,并且定时发送数据,服务器就认为用户在线,
因此只需要通过不同ip,或者不同用户来访问心跳服务器,就可以达到刷在线人数的目的,
然而现在就是不太好抓他的心跳服务器地址,而且测试发现通过wareshark抓到的跳服务器地址都不太一样,所以不知道有没有什么方法能够拿到每次的心跳地址,以及发送的数据格式
from douyucrawler.
可以考虑去逆向一下斗鱼的代码。
from douyucrawler.
๑乛◡乛๑
这有点困难啊……
from douyucrawler.
不知道大神对具体的逆向步骤有什么建议!?
from douyucrawler.
没什么建议诶,没做过这方面的内容。:(
from douyucrawler.
Related Issues (3)
- 问一下开发工具和编码格式 HOT 2
- 小直播间抓不到直播间弹幕
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from douyucrawler.