Tags: Python, json, bookmark, browser, firefox, tags
bookmark_json.py gist
So, after making a python script for fetching bookmarks from the exported HTML files, I was wondering how to make it work automatically so that I don’t need to give the HTML file every time. I started looking in firefox directory for some bookmark files which I could use. I found out that firefox keeps bookmark backups and they are encoded in json. I learned few things about json and started to write the script.
Importing Modules
import json import os
Locate the directory in which the browser stores the bookmarks backup. Continue reading