Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karlicoss/telegram-backup-to-txt
Tool to dump telegram into text files for quick search (e.g. with grep)
https://github.com/karlicoss/telegram-backup-to-txt
pkm plaintext search telegram
Last synced: about 1 month ago
JSON representation
Tool to dump telegram into text files for quick search (e.g. with grep)
- Host: GitHub
- URL: https://github.com/karlicoss/telegram-backup-to-txt
- Owner: karlicoss
- Created: 2019-10-16T22:42:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T21:32:17.000Z (over 1 year ago)
- Last Synced: 2024-08-02T12:44:54.812Z (4 months ago)
- Topics: pkm, plaintext, search, telegram
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 27
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
- awesome-starred - karlicoss/telegram-backup-to-txt - Tool to dump telegram into text files for quick search (e.g. with grep) (telegram)
README
#+begin_src python :exports results :results output drawer
import convert_to_plaintext
print(convert_to_plaintext.__doc__)
#+end_src#+RESULTS:
:results:Script to convert HTML output from [[https://github.com/fabianonline/telegram_backup][telegram_backup]] tool to plaintext with proper filenames.
I'm using it for quick search (e.g. =grep=) in messages without having to go to web interface/mobile app. You can read more about it [[https://beepb00p.xyz/pkm-search.html#other][here]].
* Usage
1. Read [[https://github.com/fabianonline/telegram_backup#usage][usage for telegram_backup]] to backup your account. Don't forget to run =--export html=!
2. Run this script with the same =--target= and =--account= arguments as for backup script, and pass =--output= directory.Personally I've got all this set up as a daily Cron job.
** Dependencies
~apt install sqlite3 html2text~
:end: