Import del.icio.us Bookmarks Into Firefox 3?

User Help for Mozilla Firefox
User avatar
thesheep
Posts: 15
Joined: December 21st, 2007, 12:44 pm
Contact:

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by thesheep »

Managed to install rubygems and the JSON library OK. Note that if you already have a version of gems installed you may need to run the update instead ("sudo gem update --system") and I think you can also install JSON from within gems? ("sudo gem install json"). The standalone install scripts didn't work for me, I think because I already had an earlier version of gems running.

Anyway, it says they're installed, but I get the following error from the script:

Code: Select all

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:90:in `parse': REXML::ParseException
   from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:204:in `build'
   from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:42:in `initialize'
   from ./import_delicious_bookmark.rb:63:in `new'
   from ./import_delicious_bookmark.rb:63:in `read_delicious_bookmark'
   from ./import_delicious_bookmark.rb:62:in `open'
   from ./import_delicious_bookmark.rb:62:in `read_delicious_bookmark'
   from ./import_delicious_bookmark.rb:51:in `initialize'
   from ./import_delicious_bookmark.rb:18:in `new'
   from ./import_delicious_bookmark.rb:18:in `import_delicious_bookmark'
   from ./import_delicious_bookmark.rb:212


Any ideas?

BTW: I'm thinking this should be relatively easy to put up on a web server somewhere, maybe with a simple HTML interface to let you upload the 2 files, then download the result (or even with just a login to get the del.icio.us data??). Watanabe - are you happy for other people to re-use your code?
watanabe
Posts: 3
Joined: June 20th, 2008, 4:00 pm

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by watanabe »

Thanks auctoris for writing detail steps.

Any ideas?

Sorry, but I don't have any idea for your error message.

are you happy for other people to re-use your code?

sure. You can use it any purpose, and I added public domain licence in the script.
http://creativecommons.org/licenses/publicdomain/deed.en
fansoftech
Posts: 2
Joined: March 20th, 2006, 8:52 am

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by fansoftech »

Re: the article I noted a few comments ago (http://tinyurl.com/5lvuxl @ fansoftech.com), a couple of commenters made a useful suggestion. One of which being:

"I’ve found that if you export .json from flock and export html from the del.icio.us website and then import both into firefox (.json first) then you’ll have tags and bookmarks!"
User avatar
thesheep
Posts: 15
Joined: December 21st, 2007, 12:44 pm
Contact:

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by thesheep »

We made a web-based solution to this, allowing you to convert your del.icio.us bookmarks to Firefox 3 without having to run Ruby on your computer. You can just go to http://delicious.e-accent.com/ and use the online tool to merge your del.icio.us bookmarks with your current Firefox bookmarks. We based it on watanabe's script. Let me know if you find it useful.
User avatar
arandor
Posts: 155
Joined: November 5th, 2004, 1:27 pm
Location: USA

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by arandor »

Awesome! Hopefully the word will get out so people will know this is available.
User avatar
arandor
Posts: 155
Joined: November 5th, 2004, 1:27 pm
Location: USA

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by arandor »

Attention watanabe and thesheep:

Here's the write-up about your conversion utility on LifeHacker.com.
J-K
Posts: 24
Joined: May 13th, 2007, 8:01 am
Location: Germany

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by J-K »

Hi,

I use Kubuntu 8.04 and get the same errors like thesheep when trying to use import_delicious_bookmark.rb .

The cool online-converter is useless, because it only works with a HTML-file and not with the XML-file I get when using scuttle (a del.icio.us 'clone' with the same API -> http://scuttle.org)

Can anyone help me?

Thanks,
Johannes
warenhaus
Posts: 426
Joined: March 1st, 2003, 11:08 am
Location: vienna

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by warenhaus »

J-K wrote:because it only works with a HTML-file and not with the XML-file I get when using scuttle
Can anyone help me?
Thanks,
Johannes


you might want to use an export tool I wrote for Scuttle. You will find a version of it it the SemanticScuttle-SVN (there currently is no development happening @ Scuttle, but a lot of development @ SemanticScuttle)

http://sourceforge.net/tracker/index.ph ... tid=729862


Not sure if it works for what you want to do., though. (Lass es mich wissen, wenn ja)

I would definitely prefer some 'live' link between an online service like delicious or scuttle and FF3's URL-bar.
ХУЙ ВОЙНЕ!
J-K
Posts: 24
Joined: May 13th, 2007, 8:01 am
Location: Germany

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by J-K »

Hi warenhaus,

Thanks for the scuttle export function!

I edited the file export_all.php a little bit to working correctly:

Code: Select all

--- api/export_all.orig.php     2008-07-07 17:29:49.000000000 +0200
+++ api/export_all.php  2008-07-07 17:29:20.000000000 +0200
@@ -5,6 +5,7 @@
 // - doesn't include the filtered tag as an attribute on the root element (we do)

 // Force HTTP authentication first!
+require_once('httpauth.inc.php');
 require_once('../header.inc.php');

 $bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
@@ -41,7 +42,7 @@
     $taglist = '';
     if (count($row['tags']) > 0) {
         foreach($row['tags'] as $tag)
-            $taglist .= convertTag($tag) .' ';
+           $taglist .= $tag .',';
         $taglist = substr($taglist, 0, -1);
     } else {
         $taglist = 'system:unfiled';


The tags have to be separated by commas and a tag could contain spaces, so the convertTag function isn't needed.
(If the tags separated by spaces, FF3 recognizes all tags of one URL as one tag after online conversion & merging with http://delicious.e-accent.com/ ...)


Thanks a lot,

Johannes
User avatar
steviex
Moderator
Posts: 28902
Joined: August 12th, 2006, 8:27 am
Location: Middle England

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by steviex »

Moving this to Firefox Support as Firefox 3 has been released....
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -Albert Einstein

Please DO NOT PM me for support... Lets keep it on the board, so we can all learn.
kevbroch
Guest

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by kevbroch »

The ruby script becomes web app: http://delicious.e-accent.com/

I just used it with no problems.
lencurrie
Guest

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by lencurrie »

Great app, however not working for my mac OS X 10.5.4

I get the error when importing into Firefox : "unable to process the backup file"

Any suggestions? Perhaps I should run through the steps and see if that works.. the webapp doesn't seem to.
lencurrie
Guest

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by lencurrie »

should also note that I've tried this on a Vista machine as well.. hmm.. any way to edit a JSON file?
Simon_Rear
Posts: 2
Joined: August 13th, 2008, 11:18 pm

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by Simon_Rear »

Anonymous wrote:should also note that I've tried this on a Vista machine as well.. hmm.. any way to edit a JSON file?
Lencurrie - I had this problem the cause appeared to be a couple of comma seperators I had inadvertantly seperate tag entries with instead of spaces. Removing any such commas (using delicious to search for them) was the fix. Hope this helps.
Bogoris
Guest

Re: Import del.icio.us Bookmarks Into Firefox 3?

Post by Bogoris »

Hello, I have the same problem as lencurrie, and I checked in my delicious tags and there seem to be no tag with a coma in its name. Any other idea ?

Thank you in advance
Locked