#reddit #export #format #txt #chats #image #download

app rexit

导出您的Reddit聊天记录

7个版本 (稳定版)

1.2.1 2023年12月15日
1.2.0 2023年7月28日
1.1.0 2023年5月14日
1.0.0 2023年4月30日
0.1.1 2023年4月24日

#515 in Web编程

每月 28 次下载

GPL-3.0 许可证

57KB
1K SLoC

Rexit

Rexit - 释放您的Reddit聊天记录。此工具可将您的Reddit聊天导出为多种格式

version license GitHub code size in bytes .github/workflows/cd.yml

将Reddit聊天导出为多种开放格式的工具(CSV、JSON、TXT)。

Export your Reddit Chats

Usage: rexit.exe [OPTIONS] --formats <FORMATS>

Options:
  -f, --formats <FORMATS>  The formats to export to. Options: csv,json,txt
  -t, --token              To use the bearer token flow, instead of username and password
      --debug              Allow debugging of Rexit
  -i, --images             Output images too (outputs to images folder)
  -o, --out <OUT>          What folder to output to [default: ./out]
  -h, --help               Print help
  -V, --version            Print version
      --no-usernames       Not Retrieve usernames (Is a lot faster)

使用方法

目前,您需要指定格式,它会要求输入用户名和密码(或具有该身份验证流的令牌)。

获取消息

$ rexit messages --images
> Your Reddit Username: <USERNAME>
> Your Reddit Password: <PASSWORD>

获取保存的帖子

$ rexit saved --images
> Your Reddit Username: <USERNAME>
> Your Reddit Password: <PASSWORD>

下载Subreddit

$ rexit subreddit r/redditDev --images
> Your Reddit Username: <USERNAME>
> Your Reddit Password: <PASSWORD>

它将文件保存到当前目录。对于CSV和TXT,它按房间分割。如果发送了图片(.jpg、.gif、.png等),则将文件名显示为消息内容,并带有前缀 FILE

安装

您可以使用此存储库版本页面上提供的文件,通过cargo或brew安装,或从源码构建。

手动安装

  1. 下载您系统版本的构建文件(Windows或arm64-darwin)
  2. 使用终端运行Rexit,并带上您想要的参数。(详见使用方法)

Cargo安装

$ cargo install rexit

Brew安装

要使用brew,您需要添加我的tap

$ brew tap mpult/mpult

然后安装Rexit

$ brew install rexit

从源码构建

  1. 安装rust
  2. 克隆仓库
  3. 运行
$ cargo install --path .

贡献

为了使文档专注于用户体验,贡献和技术文档通过cargo doc实现。

要访问这些

$ cargo doc --open

常见错误

问:某些图片未下载,控制台显示 Image was already downloaded;跳过。

答:从输出文件夹中删除 imageLog.txt 文件。


一般来说,所有贡献都受到欢迎。我会很感激您在事先创建一个问题,以便我能够很好地规划这些事情。

注意至Reddit:已尽量减少API请求。

  • 用户名请求被本地缓存,并提供了不收集用户名的选项
  • 维护已下载图片的日志,以防止多次下载图片

许可证

GNU通用公共许可证,版本3

依赖关系

~17–35MB
~533K SLoC