4 个版本
0.3.1 | 2020年2月11日 |
---|---|
0.2.3 | 2020年2月10日 |
0.2.1 | 2020年2月9日 |
0.2.0 | 2020年2月9日 |
#19 在 #reddit
115KB
1.5K SLoC
Redelete 会删除您所有的 Reddit 评论和帖子。
安装
Archlinux
# Manually from the AUR
git clone https://aur.archlinux.org/redelete.git && cd redelete
makepkg -si
# Prebuilt binary
git clone https://aur.archlinux.org/redelete-bin.git && cd redelete-bin
makepkg -si
其他人
cargo install redelete
快速入门
// authorize your reddit account with this app:
$ redelete authorize
// add configuration options to the username you just authorized
// add subreddit exclusions (space separated list of subreddits)
$ redelete config <username> -a webdev reactjs rust
// add a minimum score to avoid deleting posts higher than this score
$ redelete config <username> -s 500
// add a max time to avoid deleting posts made newer than this time (in hours)
$ redelete config <username> -t 5
// do them all at once
$ redelete config <username> -a webdev reactjs rust -s 500 -t 5
// dry-run the app
$ redelete run -d <username>
// run the app and actually delete your posts
$ redelete run <username>
// view your config options for any given username
$ redelete view <username>
// help
$ redelete -h
$ redelete run -h
$ redelete config -h
$ redelete view -h
您可以将应用程序配置为跳过
- 特定子版块的帖子
- 一定时间内的帖子
- 评分低于一定值的帖子
这是我第一个 Rust 应用,所以所有反馈都很受欢迎(无论是正面还是负面的)。
待办事项
- 在删除之前的编辑逻辑。仍需验证这是否会在 Reddit 服务器上产生差异。
- 通用代码清理:重新组织、删除注释、未使用的导入、死代码等。
- 添加文档
- 改进输出(格式化、颜色等)
警告
- Pushshift 和其他类似服务仍会索引您的帖子
- 一旦您的账户被授权,刷新 OAuth 令牌将存储在您用户账户下的纯文本文件中。令牌能做的唯一一件事是允许某人使用 Reddit API 来
- 读取您的帖子/评论/点赞/踩/以及其他历史信息
- 读取您的账户偏好设置和奖杯
- 编辑/删除您的帖子。
- 该应用程序不会采取任何措施来保护此令牌,仅限于操作系统文件的基本安全/权限。
- 为了进一步保护配置文件,我会在您授权任何 Reddit 账户后执行以下命令:
chown -R <YOUR_USERNAME>:<ANY_GROUP> ~/.config/redelete
和chmod -R 700 ~/.config/redelete
。如果您获得 root 权限或登录权限,您将陷入困境,尽管在这种情况下,您可能丢失的不仅仅是 Reddit 账户。 - 对于 Windows,我认为配置文件自然受到保护,因为它位于您的 AppData 文件夹中,但我可能错了。
依赖项
~14–27MB
~426K SLoC