Crates.io | telegrust-histo |
lib.rs | telegrust-histo |
version | 0.1.2 |
source | src |
created_at | 2021-01-18 13:13:38.558583 |
updated_at | 2021-04-18 17:54:48.213441 |
description | Generate a message-density histogram from your exported Telegram chat |
homepage | |
repository | https://github.com/urbanij/telegrust-histo/ |
max_upload_size | |
id | 343512 |
size | 17,394 |
Why? I was curious, and Python proved too slow1 at parsing timestamps, although the plot looks nicer there.
# 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 0.3 seconds vs 30 seconds benchmarked on the same ~45k messages dataset.