telegrust-histo

Crates.iotelegrust-histo
lib.rstelegrust-histo
version0.1.2
sourcesrc
created_at2021-01-18 13:13:38.558583
updated_at2021-04-18 17:54:48.213441
descriptionGenerate a message-density histogram from your exported Telegram chat
homepage
repositoryhttps://github.com/urbanij/telegrust-histo/
max_upload_size
id343512
size17,394
Francesco Urbani (urbanij)

documentation

README

telegrust-histo

Why? I was curious, and Python proved too slow1 at parsing timestamps, although the plot looks nicer there.

Install:

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

Usage:

# 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

Demo:

~/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.

Commit count: 18

cargo fmt