live room watcher
v0.3.24
plataforma | Bombardeo (mensaje) | Como | Regalo | Ingrese a la sala de transmisión en vivo | concentrarse en | dirección de transmisión original |
---|---|---|---|---|---|---|
Douyin (oficial) | ✔ | ✔ | ✔ | |||
Douyin (cortar) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
TikTok (truco) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
Kuaishou (oficial) | ✔ | ✔ | ✔ |
< dependency >
< groupId >cool.scx</ groupId >
< artifactId >live-room-watcher</ artifactId >
< version >{version}</ version >
</ dependency >
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 ());
}
}