Bili2.0
Python3 实现的 bilibili 直播助手(多用户)
Install / Use
/learn @yjqiang/Bili2.0README
bili2.0
- 由于哔哩哔哩目前对白嫖行为进行了很大的打击,且本人已经考取了研究生并已经开始了繁忙地学习,基本无暇顾及此项目,未来还会更新,但不会像以前一样及时更新与回复 issue 了,感谢各位一直以来的支持,也非常感谢群友对我的鼓励与帮助。
- 本项目已经取代 https://github.com/yjqiang/bilibili-live-tools,旧项目已经完全废除,不再提供更新和 bug 修复
- 项目初期只是想作为多用户分支,结果做完后发现,比原来项目做了很多。比如结构优化、很多函数调整、web_session 独立以及一些新的功能等,而且对单用户也很友好
- WIKI 里面有一些功能说明,以及代码一些设计细节
特别感谢
- https://github.com/lzghzr/bilive_client 该项目作者的大力支持
- Coderx for GitHub 的作者 https://github.com/CoderxforGitHub 对用户任务设计等的帮助以及其开发的 Github 软件的便利
支持与打赏
无
使用方法
- 先下载项目到电脑 https://github.com/yjqiang/bili2.0/archive/master.zip
- 安装 python3.6+,安装方法请自行谷歌/百度
- requirements.txt 是所需第三方模块,执行
pip install -r requirements.txt安装模块 - /conf/user.sample.toml 是用户目录示例,在里面添加自己的账号;/conf/ctrl.sample.toml 是用户配置示例,里面有说明按需要开启功能; /conf/task.sample.toml 是任务(小电视、勋章投喂等)控制。需要自己定制这几个文件(不是在原来 sample 文件上改,而是自己在 conf 文件夹内新建 user.toml、ctrl.toml 和 task.toml 文件,在新文件上面改(注意全部复制过去后再改,sample 文件只作为用户使用参考,程序运行不会读取此文件,只会读取用户的新建 toml 文件))
- Python 和需要模块都装好了直接 cmd 运行
python run.py - 节奏风暴默认关闭,开启需要把 /conf/task.sample.toml 的
join_storm_raffle修改,抢风暴的逻辑可以自由定制 /tasks/storm_raffle_handler.py - 动态和实物抽奖总开关(这里的开关是程序暴力轮询总开关,与 /conf/task.sample.toml 中的不一样,task控制的是单个用户是否参与)在 ctrl.sample.toml ,开启后需要在 /conf/task.sample.toml 更新
dyn_lottery_friends(这是转发动态艾特的人选),参与的抽奖会在 dyn 里面产生一个 database 数据库(sqlite3)。
使用 Docker 快速使用方法 (每次启动的时候都会通过 git pull 同步主项目代码)
Docker in Linux
docker run --rm -it \
-v $(pwd)/user.sample.toml:/app/conf/user.toml \
-v $(pwd)/ctrl.sample.toml:/app/conf/ctrl.toml \
-v $(pwd)/task.sample.toml:/app/conf/task.toml \
zsnmwy/bili2.0
Related Skills
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.4kCommit, push, and open a PR
