Results 1 to 8 of 8
  1. #1
    Star Lounger
    Join Date
    Dec 2009
    Location
    Nashville
    Posts
    92
    Thanks
    21
    Thanked 5 Times in 4 Posts

    Any way to export Firefox bookmarks to a database?

    For a long time, I've been keeping a special set of bookmarks in Firefox that I shared. I would regularly export all bookmarks to an HTML file, open that in Word to remove all but those in the bookmarks section that I wanted, then save it back to an HTML file. In recent editions of Firefox, however, my older copy of Word only opens the file as a text file. If I use Libre Office Word to do the editing, the resulting formatting is unacceptable in Firefox, although it looks fine in both Chrome and IE. In Firefox, I see extra lines in the wrong place, description paragraphs without indents. Attempting to play with the styles created within the imported file has proven to be just as much a mess (and I definitely don't want to strip out the formatting and redo it every time I do this).

    So...is there any relatively straightforward utility that could be used to extract the key pieces of an exported bookmarks file to a database or parsable text file? By "key" I mean: Link, description, tags, keywords and bookmark folder name. The only true goal here is to find the easiest way to maintain a list of links and distribute it to others.
    Last edited by imjcarls; 2015-03-01 at 15:44.

  2. #2
    Silver Lounger
    Join Date
    Mar 2014
    Location
    Forever West
    Posts
    2,075
    Thanks
    0
    Thanked 259 Times in 248 Posts
    What I have done is a Backup, Export to HTML file then share that file. It's like a Web page and can open in my Browsers and the links are clickable.

  3. #3
    Star Lounger
    Join Date
    Feb 2012
    Posts
    58
    Thanks
    2
    Thanked 5 Times in 4 Posts
    Hello, imjcarls and Berton.

    The answer to your question is probably No. One alternative solution would be to maintain your collection of links as an HTML document directly, rather than as bookmarks in your browser. Update that document manually, share it, bookmark it in your browser. For example:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Download Sites</title>
      <meta name="description" content="A collection of links to download sites">
      <meta name="author" content="Joe Cool">
      <meta name="generator" content="NoteTab Pro 7.2 (www.notetab.com)">
      <meta name="created" content="2015-03-02">
    
      <style type="text/css">
        body{font-family:Verdana,Geneva,sans-serif;font-size:16px;line-height:1.4em;color:#333;background-color:White;}
      </style>
    </head>
    
    <body>
    
    <h1>Download Sites</h1>
    
    <dl>
      <dt><a href="http://www.filehippo.com/">FileHippo</a></dt>
      <dd>A description of FileHippo.com.</dd>
    
      <dt><a href="http://www.majorgeeks.com/">MajorGeeks</a></dt>
      <dd>MajorGeeks was founded in 2001 with the goal to provide the top 1% of safe, editor tested downloads. We list less than 10,000 downloads on the entire website compared to the large websites who typically list over 500,000. If you are looking for the BEST downloads then you have come to the right place. We have always tested software for quality and pricing and once malware came along we were on the forefront, testing for that as well. We were geek before it was chic.</dd>
    
      <dt><a href="http://www.snapfiles.com/">SnapFiles</a></dt>
      <dd>We are a download site that provides access to thousands of Windows software titles, that are either free to keep (freeware) or can be downloaded as a free trial (shareware).</dd>
    </dl>
    
    <hr>
    <p>Updated on March 02, 2015</p>
    
    </body>
    </html>

  4. #4
    Star Lounger
    Join Date
    Feb 2012
    Posts
    58
    Thanks
    2
    Thanked 5 Times in 4 Posts
    I should have added that if you want to try this, copy the code, paste it into Notepad, modify it, save it with a file name extension of .htm or .html. Thereafter, maintain the file in Notepad (or any other text editor or HTML editor).

  5. #5
    Star Lounger
    Join Date
    Dec 2009
    Location
    Nashville
    Posts
    92
    Thanks
    21
    Thanked 5 Times in 4 Posts
    Thanks! That would make a lot of sense if I was starting from scratch. Plus, although it would be easy enough in Notepad, I could also start with a clean word-processor document that was then exported to HTML (which would make it easier to put it all in a table so that wide-screen browsers did not stretch the descriptions to a hard-to-read width). My bigger problem is the current document, which runs to 65 pages when opened in a word-processor, and needs to be transferred. I've looked at the structure of the exported bookmarks and could write something to parse out the pieces I want, but I was hoping someone had beaten me to it.

    [Addendum] After years of easily opening the file in Word and seeing the formatted rendering, your reply eventually sunk into my brain and I realized I could open the exported file in Notepad directly to slice out the unwanted content. Thanks again...
    Last edited by imjcarls; 2015-03-02 at 08:54.

  6. #6
    Star Lounger
    Join Date
    Dec 2009
    Location
    Nashville
    Posts
    92
    Thanks
    21
    Thanked 5 Times in 4 Posts
    Quote Originally Posted by Berton View Post
    What I have done is a Backup, Export to HTML file then share that file. It's like a Web page and can open in my Browsers and the links are clickable.
    That is essentially what I've done, but Firefox (unless I have not stumbled upon it) doesn't have a way to limit the export to just a certain section of one's bookmarks. So I have to open the exported file and remove a large number of bookmarks that I don't need or want to share.

    However, between your reply and that of iTobaman, it occurred to me that I could open the exported file in Notepad and edit out everything that was not the header and the section of links I want. That worked and now Firefox also opens the page with the correct formatting. The only other challenge left is to get the whole thing to have a right margin instead of spreading across today's wider screens, but I think I'll need to put it all in a table to do that.

  7. #7
    Star Lounger
    Join Date
    Feb 2012
    Posts
    58
    Thanks
    2
    Thanked 5 Times in 4 Posts
    A couple more ideas, just for fun:

    1. Internet Explorer can export single folders of Favorites to HTML. Export your Firefox bookmarks to Internet Explorer, then in Internet Explorer export your critical folder to HTML.

    2. Google Firefox export bookmarks folder to html. You will find a convoluted method of exporting a single folder.

  8. #8
    Star Lounger
    Join Date
    Feb 2012
    Posts
    58
    Thanks
    2
    Thanked 5 Times in 4 Posts
    Quote Originally Posted by imjcarls View Post
    The only other challenge left is to get the whole thing to have a right margin instead of spreading across today's wider screens, but I think I'll need to put it all in a table to do that.
    Web gurus would probably use CSS.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •