Skip to content

Instantly share code, notes, and snippets.

@anandtrex
anandtrex / bookmarks-telegram-to-html.py
Last active October 2, 2021 14:21
Script to convert Telegram json to a html file in the Netscape Bookmarks format.
import re
import json
import dateutil.parser as parser
with open('links.html', 'wt') as fw:
fw.write("""<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Telegram Export</title>

Keybase proof

I hereby claim:

  • I am anandtrex on github.
  • I am anands (https://keybase.io/anands) on keybase.
  • I have a public key ASCwviuzcglF-uhs_pYAPze3zqzGyHLoDLUg15XLxA3LEwo

To claim this, I am signing this object: