This is a python live.bilibili.com helper library.
- Danmaku helper with GUI.
- Mac Notification/TTS.
- A basic music VOD.
- Auto join/response SmallTV.
$ pip install pybili
-
Please create a file '.pybili.conf' in your home directory(~).
[cookies] cookies=your_cookie [90012] GiftResponse=false ShowTime=false SmallTVHint=false MacNotification=false MacTTS=false DanmakuColor=blue
Also you can use
$ bili-config
to setup this config file.
-
Run from your favorite shell.
$ bili-danmuji roomid
-
How to get the cookies?
-
How to use the Mac notification? Get an error
/bin/sh: terminal-notifier: command not found
?Install the terminal-notifier through
$ brew install terminal-notifier
-
How to record the danmakus?
Install the MongoDB through
$ brew install mongodb
more -
How to use the web-interface?
-
Install RabbitMQ(connection between this project and the Live-Stream-Chat-Retriever project:
$ brew install rabbitmq
more -
Setup aonther project from https://github.com/kliner/Live-Stream-Chat-Retriever, or using:
$ npm install https://github.com/kliner/Live-Stream-Chat-Retriever/archive/0.1.0.tar.gz
-
Using 2 shells to run
$ bili-dm roomId
$ npm start PATH_TO_{Live-Stream-Chat-Retriever}
-
Copyright (c) 2017-2017 kliner