GithubHelp home page GithubHelp logo

peidongbin / bililive-auto-streaming Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kimmyxyc/bililive-auto-streaming

0.0 0.0 0.0 33 KB

哔哩哔哩自动直播 ‖ 自动获取B站直播激励金

License: GNU General Public License v3.0

Python 100.00%

bililive-auto-streaming's Introduction

哔哩哔哩自动直播

使用方法

  • 安装 Python3.7 或更高的版本
  • 执行 pip install -r requirements.txt 安装依赖
  • 执行 python3 login.py 扫码登录哔哩哔哩账号
    • 或从 https://api.bilibili.com/x/web-interface/nav 请求中获取 Cookies 填入
  • 填写 Config.json 文件
{
    "user_info": {
        "cookies": "", //登录信息,可使用 login.py 自动获取
        "room_id": 0, //自己的哔哩哔哩直播房间号
        "area": 192 //直播分区ID
    },
    "deploy": {
        "video_path": "video.flv", //视频文件路径(支持相对路径和绝对路径)
        "live_time": 2100 //目标直播时长(单位:秒)
    },
    "push": { //推送配置
        "telegram": {
            "enable": false, //是否启用
            "group_id": "",
            "bot_token": "",
            "proxy": "" //代理地址,支持 socks5 和 http 留空为禁用
        }
        --snip--
    }
}
  • 安装并配置 ffmpeg
  • 运行 python3 main.py

注意事项

  • 已知在 青龙面板 环境下会产生若干bug,若有条件,请使用其他方式执行程序
  • 程序运行过程中强制停止可能会导致 ffmpeg 未停止运行,请留意
  • 若使用云服务器,请保证服务器位于**大陆,否则会因为哔哩哔哩的限制导致无法开播

bililive-auto-streaming's People

Contributors

kimmyxyc 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.