Bilibili视频下载收藏夹视频推送,抓取 ,推送到Onedrive

Bilibili视频下载收藏夹视频推送,抓取 ,推送到Onedrive

Jul 15, 2022 09:33 PM
notion image




notion image
notion image
notion image
notion image
notion image

English | 中文


Bilibili video download and extract audio for wav and flac TG-RSS version video second-pass extraction and push. This project allows you to synchronize the music of your favorite erchuang video to the specified TG group and also onedrive bussines, using RShub to provide data support.


notion image
MAIN can run on windows system, supports sticking music labels and optionally saving flv and wav files. (modify the file yourself...)
notion image
If you use action deployment, the function is only to extract flac. To configure this action, you need to add keys in the environment, one is token and the other is email. (Apply for github openapi token by yourself
notion image
The sound quality should be the same as the video heard


notion image
Execute up to 20 push tasks each time.
Do not push super long videos (>10min) to avoid risks
Please do not deploy directly on the Github Action service, the yml of this repository is used for task flow usability testing
Liunx deploys RSS push see music.yml, the variables need to be configured manually.


1. Installation Requirements

Python 3.7 or higher
python -m pip install --upgrade pip

pip install setuptools wheel twine bs4 requests tabulate mutagen pydub you_get moviepy pyTelegramBotAPI feedparser
  • Install necessary packages locally by running pip install bs4 requests tabulate mutagen pydub you_get moviepy
  • Push service installation robot API library and RSS parsing library pip install pyTelegramBotAPI feedparser

2. Preparation

select file version --->RSS auto editon --->win&linux edition
The ONEdrive synchronization function has been added since version 220209. If this function is not required for Rss deployment, please comment the parameters of lmain and the onedrive class in it.

RSS feed users

    • source ( You need to build Rsshub to get web sources, or use the services of public projects! See .
    • Fork this repository and set secrets Tips: If you use action deployment, it is recommended to only set extraction flac. To configure this action, you need to add secrets to the environment, one is github token and the other is email. (Apply for github openapi token
Add Repository secrets
token = ***** # bot token, use tg@BotFather, google by yourself
objectID = ***** # channal id ,please use tg@getidsbot get this value!
rssurl = **** # rssurl, see

appid, appkey, and apptoken are synchronously used by Microsoft cloud disk. You need to obtain these quantities from Azure, and the token should be automatically generated by running test/tokensetup!
Comment out if this feature is not required!
Add Environment secrets
>token # github token, use
>email # your email address
Pay attention to distinguish between two tokens.
  • run Github action runs the process once a day at 6:20, and the repository owner plus stars will also trigger the process.

Standalone use

Fill in data/userdata.yaml and run it.

Implementation logic (

RSSdata is an independent storage worker, associated with the main program by rssdata.yaml
notion image
Comparison input
NO new
delete data if successful
pull RSS
Compute updated entry?
Download Extraction
write report
graph TB

A(pull RSS)--Comparison input--> B[data]

B[data] --> C{Calculate updated entry?}

C{Calculate updated entry?} -- NEW --> D[Download Extract]

C{Compute updated entry?} -- NO new --> S

D[Download Extraction] --Push --> E[TG]

E -- delete data if successful --> B

E[TG] --> S[write report]

Directory structure description

├── data
│ ├── public.cer //public key
│ ├── rssdata.yaml //automatically filled in
│ └── userdata.yaml // manually filled in
├── docs //documentation
│ └── workflow.png
├── err.txt //Local debugging error log
├── LICENSE //Protocol
├── LICENSE.txt
├── // rss test version, playlist download, because the api is limited
├── // rss push version, github action run target
├── log.txt
├── // Interactive download version available for both linux & win
├── mods
│ │
│ └── //rsa support
├── o365_token.txt //encrypted token, decrypted at runtime
├── requirements.txt
├── targets.txt
└── test
 ├── err.txt
 ├── log.txt
 ├── //token settings are automatically generated


  • Implement download function
  • Implement the function of fetching new entries
  • Implement push function
  • Realize multi-source multi-target push


See TODO for details


  • O365 |Microsoft cloud disk synchronization implementation|


notion image
notion image