#telegram #telegram-histogram #telegram-export

app telegrust-histo

从您导出的 Telegram 聊天中生成消息密度直方图

3 个版本

0.1.2 2021 年 4 月 18 日
0.1.1 2021 年 1 月 30 日
0.1.0 2021 年 1 月 18 日

#190可视化

每月下载 43

MIT 许可协议

10KB
131 代码行

telegrust-histo

为什么?我很好奇,虽然 Python 在那里生成的图表看起来更好看,但它解析时间戳的速度太慢了。

安装

# install telegrust-histo with cargo, 
# provided that you have the rust toolchain set up.
cargo install telegrust-histo

用法

# cd to wherever your exported folder is
cd ~/Downloads/Telegram\ Desktop/ChatExport_2021-01-15 

# print options
telegrust-histo -help

# run it
telegrust-histo -b 300 -v

演示

~/ChatExport_2021-01-15> time telegrust-histo -b 200  # time is optional btw of course
[+] Generated histogram_200.svg (using 200 bins) in the current folder.
[+] Processed 47 files (46610 messages) from 2017-04-16 22:02 to 2021-01-13 13:30
telegrust-histo  0.27s user 0.02s system 97% cpu 0.295 total

1 与同一约 45k 条消息数据集的基准测试相比,0.3 秒与 30 秒。

依赖项

~3.5–4.5MB
~79K SLoC