Skip to content

Instantly share code, notes, and snippets.

@zhongfu
zhongfu / README.md
Last active October 21, 2021 00:44
lobsterdao chat stats

how do I use this crap?

  • open up tdesktop (ie the Telegram desktop client)
  • go to your favorite group
  • export all messages as json -- you can skip all media
  • head to wherever tdesktop downloaded it to -- maybe Downloads/ChatExport_yyyy-mm-dd/
  • run generate.py there
  • optionally: weep a little
@kadin2048
kadin2048 / emlToMbox.py
Last active September 20, 2024 13:24
Combine a directory of .eml files into a single Unix "mbox" file.
#!/usr/bin/env python3
""" Converts a directory full of .eml files to a single Unix "mbox" file.
This is similar to http://www.cosmicsoft.net/emlxconvert.html
Accepts as input either an individual .eml file or a directory containing one
or more .eml files.
Usage:
$ ./emlToMbox.py inputdir/ output.mbox