Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scx567888/live-room-watcher
📺 可抓取直播间 弹幕, 礼物, 点赞, 原始流地址等
https://github.com/scx567888/live-room-watcher
chat douyin java kuaishou live-room tiktok webcast
Last synced: 3 months ago
JSON representation
📺 可抓取直播间 弹幕, 礼物, 点赞, 原始流地址等
- Host: GitHub
- URL: https://github.com/scx567888/live-room-watcher
- Owner: scx567888
- License: mit
- Created: 2023-01-09T10:27:09.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T11:08:46.000Z (4 months ago)
- Last Synced: 2024-10-25T09:21:53.219Z (4 months ago)
- Topics: chat, douyin, java, kuaishou, live-room, tiktok, webcast
- Language: Java
- Homepage:
- Size: 3.97 MB
- Stars: 279
- Watchers: 12
- Forks: 75
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Live Room Watcher
## 📺 可抓取直播间 弹幕, 礼物, 点赞, 原始流地址等 (仅供学习使用,不得用于商业用途)
| 平台 | 弹幕(消息) | 点赞 | 礼物 | 进入直播间 | 关注 | 原始流地址 |
|:-------------:|:------:|:---:|:---:|:-----:|:---:|:-----:|
| 抖音(官方) | ✔ | ✔ | ✔ | ❌ | ❌ | ❌ |
| 抖音(Hack) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
| TikTok (Hack) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
| 快手(官方) | ✔ | ✔ | ✔ | ❌ | ❌ | ❌ |## Maven
``` xml
cool.scx
live-room-watcher
{version}```
## 基本用法
``` java
import cool.scx.live_room_watcher.impl.douyin_hack.DouYinHackLiveRoomWatcher;public class Main {
public static void main(String[] args) {
var liveRoomWatcher = new DouYinHackLiveRoomWatcher("https://live.douyin.com/357626301151");liveRoomWatcher.onChat(chat -> {
System.out.println("[消息] " + chat.user().nickname() + " : " + chat.content());
}).onUser(user -> {
System.out.println("[来了] " + user.nickname());
}).onLike(like -> {
System.out.println("[点赞] " + like.user().nickname() + " x " + like.count());
}).onFollow(follow -> {
System.out.println("[关注] " + follow.user().nickname());
}).onGift(gift -> {
System.out.println("[礼物] " + gift.user().nickname() + " : " + gift.name() + " x " + gift.count());
});liveRoomWatcher.startWatch();
System.out.println("[直播流地址] " + liveRoomWatcher.liveRoomWebStreamURLs());
}}
```### 由于第三方的系统总是在不断的更新升级 如果功能失效请提 issues 并详细说明情况 .