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/
In Firefox,
- Go to
about:support
(Alt, H, T
) - Open
Profile Folder
- 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 ...
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
.
The action update.yml
in this repository updates two things when a new bookmarks.json
file is pushed.