{"id":13430365,"url":"https://github.com/SummerLiu95/bili-fav-sniffer","last_synced_at":"2025-03-16T05:30:48.143Z","repository":{"id":65819262,"uuid":"508644734","full_name":"SummerLiu95/bili-fav-sniffer","owner":"SummerLiu95","description":"哔哩哔哩收藏夹嗅探器，定时下载特定收藏夹的新视频到本地","archived":false,"fork":false,"pushed_at":"2024-02-13T03:31:22.000Z","size":28628,"stargazers_count":136,"open_issues_count":8,"forks_count":9,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-11-17T01:01:38.534Z","etag":null,"topics":["bilibili","bot","docker","ffmpeg","nextjs","node-schedule"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SummerLiu95.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-06-29T10:27:05.000Z","updated_at":"2024-10-26T13:45:47.000Z","dependencies_parsed_at":"2023-02-21T04:01:08.586Z","dependency_job_id":"b7f6f572-771a-4f50-ab48-28435da1537c","html_url":"https://github.com/SummerLiu95/bili-fav-sniffer","commit_stats":null,"previous_names":["summerliu95/bili-fav-sniffer"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SummerLiu95%2Fbili-fav-sniffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SummerLiu95%2Fbili-fav-sniffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SummerLiu95%2Fbili-fav-sniffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SummerLiu95%2Fbili-fav-sniffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SummerLiu95","download_url":"https://codeload.github.com/SummerLiu95/bili-fav-sniffer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bilibili","bot","docker","ffmpeg","nextjs","node-schedule"],"created_at":"2024-07-31T02:00:52.728Z","updated_at":"2025-03-16T05:30:45.466Z","avatar_url":"https://github.com/SummerLiu95.png","language":"TypeScript","funding_links":[],"categories":["下载工具"],"sub_categories":["直播脚本"],"readme":"\u003cdiv align=center\u003e\n\u003cimg src=\"https://github.com/BarryLiu1995/bili-fav-sniffer/assets/20590350/d4554851-ec3a-4b8c-af7e-a81f4e59aefe\" width=\"300\" height=\"300\"/\u003e\n\u003c/div\u003e\n\n# bili-fav-sniffer\n相信大家都会有一个困惑（特别是作为一名住在 B 站的程序员来说🤣）：收藏好的 B 站视频失效无法观看，觉得可太可惜了。此时这个工具就是为解决这种情况而诞生的。它会定期检测某个特定收藏夹是否有新收藏但未下载的视频，如果有即下载新收藏的视频。\n\n**建议该服务运行在有科学冲浪环境的软路由、VPS 或 NAS 等一些能够不停机的“服务器”，因为 RSSHub 服务直连有较大概率失败（当然 RSSHub 服务也可以自己本地部署来解决这个问题）**\n\n## 使用演示\nhttps://github.com/SummerLiu95/bili-fav-sniffer/assets/20590350/522cb8b5-13a3-425d-89d2-41e3b7e74b47\n\n\n## 使用运行\ndockerhub 镜像地址：[fish95/bili-fav-sniffer](https://hub.docker.com/r/fish95/bili-fav-sniffer)\n```bash\ndocker run \\\n  --name ${nameOfContainer} \\\n  -p 3000:3000 \\             \n  -v ${yourPathToRequiredDir}:/usr/you-get-download \\\n  fish95/bili-fav-sniffer\n```\n然后打开配置页面地址填写必要信息即可开启嗅探服务～\n\n## 使用须知\n下载配置文件模板 [config.json](https://github.com/BarryLiu1995/bili-fav-sniffer/blob/main/template/config.json)，在配置文件将对应字段填写完毕后在配置页面选择导入配置\n配置字段说明如下：\n```json\n{\n  \"telegram_bot_token\": \"Telegram 推送机器人 token，为选填\",\n  \"telegram_chat_id\": \"Telegram 推送聊天框 id，为选填\",\n  \"fav_url\": \"* 收藏夹URL，为必填字段\",\n  \"rss_domain\": \"* RSSHub服务地址，为必填字段，可以选择使用默认值\",\n  \"cron\": \"* cron定时表达式，为必填字段，可以选择使用默认值\"\n}\n```\n\n## 主要功能\n- 嗅探新收藏视频（第一次运行会将收藏夹第一页的所有视频下载，后续运行只会下载新收藏视频）\n- 某次运行下载未成功视频会在下次运行中重新尝试直到成功下载为止\n- 可以随时控制任务的停止开启以及运行时间\n- 下载结果通知推送\n- 最高可以下载视频的最高分辨率视频（需扫码登录）\n- 下载收藏的视频时可以下载封面和弹幕、字幕\n- 支持收藏的视频合集下载\n- 配置文件的导入导出，避免每次手写填入的麻烦\n- 容器重启自动运行已运行的嗅探服务\n\n## Roadmap\n### v2.0.0\n\n- [ ] 替换 rsshub\n- [ ] 嗅探用户多个收藏夹，检测本地哪些视频已下载（配合刮削的 nfo 文件来实现）\n\n### v2.1.0\n\n- [ ] 定时服务数据持久化\n- [ ] 页面 UI 风格重新改版\n\n### v2.2.0\n\n- [ ] 增加控制台输出页面（SSE 推送正在运行的日志输出，同时可查看以往的运行日志）\n\n### v2.3.0\n\n- [ ] 推送消息方式的增加\n- [ ] 解决潜在的用户权限问题（权限设置最佳实践）\n\n### 本地构建运行\n```bash\n# 本地构建镜像\ndocker build -t bili-fav-sniffer .\n\n# 前台运行, 结束后删除该容器.\ndocker run --rm --name ${nameOfContainer} -p 3000:3000 -v ${specifiedVideoDownloadDir}:/usr/you-get-download bili-fav-sniffer\n\n# 后台运行, 结束后删除该容器.\ndocker run --rm -d --name ${nameOfContainer} -p 3000:3000 -v ${specifiedVideoDownloadDir}:/usr/you-get-download bili-fav-sniffer\n\n# 调试镜像.\ndocker run -it --rm -p 3000:3000 -v ${specifiedVideoDownloadDir}:/usr/you-get-download bili-fav-sniffer /bin/bash\n```\n\n## 免责声明\n1. 本工具仅供学习研究使用，用户在使用过程中应遵守国家法律法规，不得将本工具用于非法用途，如侵犯他人合法权益等。\n\n2. 本工具反编译、破解或修改行为与本项目无关，使用后果自负。\n\n3. 本工具开发者不承担任何因用户使用本工具而导致的任何形式的责任，包括但不限于因软件缺陷或操作不当导致的机器故障、数据丢失以及其它损失等。\n\n4. 本工具不承担任何因使用本工具而产生的版权纠纷及连带责任。\n\n5. 本工具作者拥有对本协议的最终解释权，且保留随时对项目进行修改、更新、终止的权利。\n\n6. 如您对本工具的使用存在任何疑问，欢迎提 issue，本工具作者将在帮助解决问题的同时，并不承担因使用本工具而导致的任何形式的责任。\n\n7. 您在下载、使用本工具以及使用本项目的过程中，即视为您已经仔细阅读并完全同意本声明的所有条款，如有异议，请立即停止使用本工具。\n\n## P.S.\n本项目中一些代码由 ChatGPT 输出，感谢 ChatGPT 哈哈哈哈。我只是个代码黏合怪哈哈哈哈哈～\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSummerLiu95%2Fbili-fav-sniffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSummerLiu95%2Fbili-fav-sniffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSummerLiu95%2Fbili-fav-sniffer/lists"}