Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export Firefox bookmarks (and tags) to CSV?

Firefox lets you export to HTML, and while I could write a script that uses regex to parse that into CSV I was curious if there were any existing utilities / Firefox addons that allowed us to directly export to CSV. Also interested if there is any way to import like this.

like image 705
Andrew Avatar asked Apr 28 '19 17:04

Andrew


People also ask

Can you export Firefox bookmarks?

Exporting bookmarks from Firefox button.) Click Bookmarks and then click the BookmarksManage Bookmarks bar at the bottom. Import and Backup and choose Export Bookmarks to HTML… from the drop-down menu. In the Export Bookmarks File window that opens, choose a location to save the file, which is named bookmarks.


1 Answers

I believe such an extension does not exist as of yet, but I wanted to make you aware that you can also export your bookmarks to JSON format, which might make a conversion to CSV easier compared to working with the HTML export (... depending).

Mozilla's official Firefox support page Restore bookmarks from backup or move them to another computer mentions how to do this under "Manual backup", though I find navigating there via the browser menu bar easier:
Bookmarks > Show All Bookmarks, click the star-shaped button and select Backup.... This will prompt the Save File dialogue for a JSON file named bookmarks-YYYY-MM-DD.json with the current date.

Edit: the closest solution to using a FF add-on is probably a JavaScript bookmarklet. I included code for a first simple version in a Gist over on GitHub. You'd run this with the HTML export of your bookmarks open in your browser.

like image 111
Kay Avatar answered Dec 24 '22 19:12

Kay