GithubHelp home page GithubHelp logo

dawei091 / live-room-watcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scx567888/live-room-watcher

0.0 0.0 0.0 3.18 MB

📺 可抓取直播间 弹幕, 礼物, 点赞, 原始流地址等

License: MIT License

Java 95.71% PowerShell 4.20% Batchfile 0.09%

live-room-watcher's Introduction

Live Room Watcher

CI maven-central code-size issues license

SCX Common Protocol Buffers TestNG

📺 可抓取直播间 弹幕, 礼物, 点赞, 原始流地址等 (仅供学习使用,不得用于商业用途)

平台 弹幕(消息) 点赞 礼物 进入直播间 关注 原始流地址
抖音(官方)
抖音(Hack)
快手(官方)
快手(Hack) 计划中 计划中 计划中 计划中 计划中 计划中
哔哩哔哩 计划中 计划中 计划中 计划中 计划中 计划中
网易CC
么么直播

Maven

<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());
    }

}

由于第三方的系统总是在不断的更新升级 如果功能失效请提 issues 并详细说明情况 .

live-room-watcher's People

Contributors

scx567888 avatar dependabot[bot] avatar

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.