发表于 2022-8-29 00:00:00

抖音,斗鱼,快手的直播弹幕获取

<h2 dir="auto"></h2>
<h3 dir="auto"><a id="user-content-介绍-1" class="anchor" href="https://github.com/XiaoXinYo/Live_Barrage#%E4%BB%8B%E7%BB%8D-1" aria-hidden="true"></a>介绍</h3>
<p dir="auto">通过浏览器运行JavaScript脚本获取直播弹幕,使用WebSokcet向其他端传送弹幕.</p>
<h3 dir="auto"><a id="user-content-配置-1" class="anchor" href="https://github.com/XiaoXinYo/Live_Barrage#%E9%85%8D%E7%BD%AE-1" aria-hidden="true"></a>配置</h3>
<ol dir="auto">
<li>WebSocket连接地址在第1行.</li>
<li>监听间隔(毫秒)在第2行.</li>
</ol>
<h3 dir="auto"><a id="user-content-方法-1" class="anchor" href="https://github.com/XiaoXinYo/Live_Barrage#%E6%96%B9%E6%B3%95-1" aria-hidden="true"></a>方法</h3>
<p dir="auto">先运行服务端,再运行脚本.</p>
<h3 dir="auto"><a id="user-content-响应参数-1" class="anchor" href="https://github.com/XiaoXinYo/Live_Barrage#%E5%93%8D%E5%BA%94%E5%8F%82%E6%95%B0-1" aria-hidden="true"></a>响应参数</h3>
<table class="layui-table" style="width: 15.6038%; height: 234.969px;">
<thead>
<tr style="height: 21.2188px;">
<th style="width: 45.7474%; height: 21.2188px;">名称</th>
<th style="width: 41.8343%; height: 21.2188px;">说明</th>
</tr>
</thead>
<tbody>
<tr style="height: 21.2188px;">
<td style="width: 45.7474%; height: 21.2188px;">type</td>
<td style="width: 41.8343%; height: 21.2188px;">类型</td>
</tr>
<tr style="height: 21.2188px;">
<td style="width: 45.7474%; height: 21.2188px;">nickname</td>
<td style="width: 41.8343%; height: 21.2188px;">昵称</td>
</tr>
<tr style="height: 21.2188px;">
<td style="width: 45.7474%; height: 21.2188px;">user_level</td>
<td style="width: 41.8343%; height: 21.2188px;">用户等级</td>
</tr>
<tr style="height: 21.2188px;">
<td style="width: 45.7474%; height: 21.2188px;">fan_club_name</td>
<td style="width: 41.8343%; height: 21.2188px;">粉丝团名称</td>
</tr>
<tr style="height: 21.2188px;">
<td style="width: 45.7474%; height: 21.2188px;">fan_club_level</td>
<td style="width: 41.8343%; height: 21.2188px;">粉丝团等级</td>
</tr>
<tr style="height: 43.2188px;">
<td style="width: 45.7474%; height: 43.2188px;">is_admin</td>
<td style="width: 41.8343%; height: 43.2188px;">是否为管理员</td>
</tr>
<tr style="height: 21.2188px;">
<td style="width: 45.7474%; height: 21.2188px;">content</td>
<td style="width: 41.8343%; height: 21.2188px;">内容</td>
</tr>
<tr style="height: 43.2188px;">
<td style="width: 45.7474%; height: 43.2188px;">gift_image_url</td>
<td style="width: 41.8343%; height: 43.2188px;">礼物图像网址</td>
</tr>
</tbody>
</table>
<p><span style="font-size: medium;">下载地址:<span style="color: #e03e2d;"><a style="color: #e03e2d;" title="源码下载" href="https://github.com/XiaoXinYo/Live_Barrage" target="_blank" rel="noopener">https://github.com/XiaoXinYo/Live_Barrage</a></span></span></p>
页: [1]
查看完整版本: 抖音,斗鱼,快手的直播弹幕获取