Giter Site home page Giter Site logo

left024 / bilifavoritesdownloader Goto Github PK

View Code? Open in Web Editor NEW
74.0 1.0 14.0 91 KB

自动下载B站收藏视频,支持自动下载封面图,自动转换xml至ass,下载完成自动上传 OneDrive,邮件通知,telegram 通知(实时下载进度查看)

License: Apache License 2.0

Shell 100.00%

bilifavoritesdownloader's Introduction

BiliFavoritesDownloader

注意

此脚本为自用脚本,不保证其他机子能正常运行

功能

  • telegram 通知,实时下载进度查看
  • 最高清晰度下载(需要大会员)
  • 邮件通知
  • 封面图下载
  • xml 转 ass
  • 下载完成上传 OneDrive
  • 一键脚本完成初始化设置
  • 初次使用下载收藏夹以前的所有视频

更新日志

2021/12/02

#2

2021/11/21

修复视频最高清晰度为「1080P 高帧率」或「1080P 60帧」时仍然下载「1080P」的问题

2021/11/10

新增 Cookies 检查,默认情况下当 Cookies 不可用将不会开始下载

使用

脚本原理是每分钟检查 RSS,然后通过 you-get 进行下载(需要额外安装 ffmpeg,否则无法合并下载完的视频且不会自动下载最高画质)

脚本中注释已经写的很明白了,必须要修改的是RSS地址邮箱地址,可选修改地址为脚本存放地址视频存放地址

默认脚本存放地址/root/bili 默认视频存放地址/root/Bilibili

邮件通知使用的是 mailutils ,不是所有 VPS 都能用,自行测试

telegram bot 的 token 和 chat_id 自行搜索获取方法

最高画质下载需要设置cookies.txt,默认存放在/root/bili

Chrome 可以安装 EditThisCookie 插件,将导出格式设置为Netscape HTTP Cookies File然后导出粘贴在cookies.txt中即可

xml转ass使用的是DanmakuFactory,这里提供了已编译好的可执行文件,同样是默认存放在/root/bili

OneDrive 使用的是rclone,需要自行配置

百度云 使用的是BaiduPCS-Go,需要自行配置

配置完成后设置crontab即可使用

*/1 * * * * /bin/bash /root/bili/bili.sh >/dev/null 2>&1

效果

点击某一视频的收藏后开始下载

点击收藏

邮件通知

邮件通知开始下载

telegram 通知(实时下载进度)

telegram 通知开始下载

下载完成后通知

下载完成

telegram 通知

下载完成后的文件目录

文件目录

感谢

you-get

FFmpeg

DanmakuFactory

rclone

BaiduPCS-Go

RSShub

bilifavoritesdownloader's People

Contributors

left024 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bilifavoritesdownloader's Issues

小修改以支持新的b站rss

最近b站对up主视频反爬很严格,rsshub上的video和video-all标签经常失效,在rsshub上可以使用 UP 主动态路由作为代替绕过反爬限制。
可以在脚本里添加视频验证
脚本命令为/home/code/bilidown/bilidown-lux.sh "user" "dynamic" "326427334" "星球研究所"
rss链接为rssURL="https://yoururl.com/bilibili/$1/$2/$3/directLink=1 -q -O -"
使用directLink=1获取直链
修改脚本内以下代码即可
if [ "$pubdate" != "$olddate" ] && [ "$result" != "" ] && [ "$result6" = "" ] && [[ "$link" == *"/video/"* ]]; then

提个可能有点奇怪的需求,稿件名称重复

有少数up主的投稿,不同稿件但稿件名称完全相同,导致脚本检测到同样名称不执行下载。例子
手动删除date和title文件后,下载也会覆盖原来的同样名字的旧稿件
看能不能通过bv号来验证稿件是否相同,然后下载目录给稿件文件夹加上时间戳防止被覆盖

cookies文件失效

如果不是大会员好像无法下载 检查cookies那里失败
删除那段就能运行

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.