Jump to content

DGWebb

Level 1
  • Posts

    1
  • Joined

  • Last visited

About DGWebb

DGWebb's Achievements

0

Reputation

  1. If this is still useful to anyone, I have about 6000 delicious bookmarks that I needed to bring into Evernote. The link to the jsfiddle above that grberk posted was super close, but it wasn't grabbing tags (which is mostly what I used delicious for). I made a very simple modification which gets the tags, Just replace the "createNote" function with this: function createNote(context, folder_path) { number_parsed++; var a = $(context).children('a:first'); var url = a.attr('href'); var importedTags = a.attr('TAGS').toString(); var ADD_DATE = ISODateString(new Date(1000 * parseInt(a.attr('ADD_DATE'), 10))); var title = a.text().encodeHTML(); var tags = ""; importedTags = importedTags.split(','); for (var i = 0; i < importedTags.length; i++) { tags += "<tag>" + importedTags.encodeHTML().trim() + "</tag>"; } var note = "<note><title>" + title + "</title><content> <" + "![CDATA[ <en-note>" + title + "<br /><a href=\"" + url + "\">" + url + "</a></en-note>]" + "]></content><created>" + ADD_DATE + "</created>" + tags + "<note-attributes><source-url>" + url.encodeHTML() + "</source-url></note-attributes></note>\n\n\n"; result += note; }
×
×
  • Create New...