Skip to content

alifeee/firefox-bookmarks

Repository files navigation

Firefox bookmarks

This is an exporter for Firefox bookmarks. It is designed so that I can easily share (some of) my bookmarks on my website.

For my bookmarks, see https://alifeee.co.uk/bookmarks/

To use

In Firefox,

  1. Go to about:support (Alt, H, T)
  2. Open Profile Folder
  3. Copy places.sqlite to this repository

Run read_bookmarks.py with the bookmark folders you would like exported. For me, that's

py .\read_bookmarks.py -f "TOP 10 personal websites/blogs" "other bookmarks lists" "webrings" "personal websites (with blog)" "personal websites (without blog)" "interesting websites" "Articles (random)" "Articles (programming)" "video playlists/channels" "wordles" "mobile games"

You now have bookmarks.json which can be used wherever it needs to be used.

For an example, see example.html.

To make it even more one-liner you could also create a bash script like

cp C:\Users\<user>\AppData\Roaming\Mozilla\Firefox\Profiles\<id>.default\places.sqlite places.sqlite
py .\read_bookmarks.py ...

Build HTML

I want this page to be static, so I don't want to make a "frontend" (something that would need to download and parse the JSON). So, here I just make a static index.html file to push to my website.

pip install -r requirements.txt
py generate_html.py

It gets build to index.html.

GitHub action

The action update.yml in this repository updates two things when a new bookmarks.json file is pushed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published