https://github.com/ehco1996/dig-up
https://github.com/ehco1996/dig-up
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ehco1996/dig-up
- Owner: Ehco1996
- Created: 2022-10-04T06:36:49.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-11T10:11:11.000Z (almost 3 years ago)
- Last Synced: 2025-04-01T01:45:47.050Z (6 months ago)
- Language: Go
- Size: 5.45 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dig-up
喜欢的 up 好久不更新?快用这个工具来挖一下 up 之前发过的视频吧
> dig-up 可以帮助你批量收藏 up 的投稿中你没看过的视频
## 安装
* 从 github release [页面](https://github.com/Ehco1996/dig-up/releases)可以下载到编译好的版本
* 如果本地有 golang 环境,可以通过 `go install github.com/Ehco1996/dig-up/cmd/dig-up@master` 命令安装
## 视频教程
*
## 快速开始
* 打开网页版本的 b 站的 up 主空间,记录 up 主的 uid

这里[徐云](https://space.bilibili.com/697166795) 的 uid 是 697166795
* 右键打开 Inspect 工具

* 切换到 Network tap 并只看 Fetch/XHR 页面,刷新 b 站的网页

* 随便找一个请求,点击右键 [Copy as cURL]

* 将复制的内容存入空白文件中,比如这里我就使用 `.curl` 作为文件名字
这一步是将你 b 站的登录信息保存在本地,这样 dig-up 就有权限来操控你的 b 站收藏夹了
* 找到你想存放 up 主视频的收藏夹 ID
这里[我创建的收藏夹](https://space.bilibili.com/2960084/favlist?fid=1784575284) 的 id 是 1784575284

* 准备工作全部做完了,开始考古吧
在第 5 步存放`.curl` 文件的目录下执行
```bash
❯ dig-up --curl-path=.curl --favorite-id=1784575284 --up-uid=697166795 --start-page=1
```
* 上下箭头按键可以选择投稿
* 按回车(enter) 可以检查该投稿是否观看过,如果没观看会自动收藏
* **长按p键** 快速处理所有投稿,并自动翻页
* 按 n 键,切换到下一页
* 按 o 键,开始自动处理所有的视频
* start-page 是从第几页开始处理,如果自动批量处理视频的时候,中途断开了,就可以通过这个参数来控制从哪里续上## 所有参数
```bash
❯ dig-up -h
发现了宝藏 up 主?快来考古吧!Usage:
dig-up [flags]Flags:
--curl-path string 保存从浏览器里复制的 curl 内容的文件地址 (default ".curl")
--favorite-id int 收藏夹的 ID
-h, --help help for dig-up
--start-page int 开始检查的页数 (default 1)
--up-uid int 喜欢的 up 主的 uid,默认 up 是【徐云流浪中国】 (default 697166795)收藏夹 ID 不能为空,请加上参数 --favorite-id={你的收藏夹 ID}
```## 自己编译
`make build`