Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo
Windows

Tool: Import Chrome (Netscape) bookmarks to Evernote

bookmarks import chrome evernote

  • Please log in to reply
18 replies to this topic

#1 iwqnna

iwqnna

  • Pip
  • Title: Member
  • Group: Members
  • 6 posts

Posted 10 July 2012 - 03:27 PM

Hi, I wanted to organize my bookmarks with tags, and was not happy with the Chrome bookmark manager, so I decided to create a small tool to help importing bookmarks from Chrome (Netscape Bookmark format).

It will parse the bookmark export, create notes with folders as tags. The output xml can be saved as an .enex file and imported to Evernote.

I'm posting it here in case anyone else will find it useful.

I've used simple javascript+jquery parsing functions. It is not tested much.

I was inspired by @gufertum's solution (http://discussion.ev...er-to-evernote/), which however was done in perl, and it did not handle folders and dates

update 2012/12/12: fixed version here
http://jsfiddle.net/iwqnna/LQ2nQ/

#2 GrumpyMonkey

GrumpyMonkey

  • Title: 不機嫌な猿
  • Group: Evernote Evangelist
  • 7,589 posts

Posted 10 July 2012 - 03:33 PM

Hi, I wanted to organize my bookmarks with tags, and was not happy with the Chrome bookmark manager, so I decided to create a small tool to help importing bookmarks from Chrome (Netscape Bookmark format).

It will parse the bookmark export, create notes with folders as tags. The output xml can be saved as an .enex file and imported to Evernote.

I'm posting it here in case anyone else will find it useful.

I've used simple javascript+jquery parsing functions. It is not tested much.

http://jsfiddle.net/kT4nj/


Hi. Welcome to the forum and thanks for posting that. I'll give it a try. Would you mind sharing a note, or a screenshot of it, so that we can see the final product?

#3 iwqnna

iwqnna

  • Pip
  • Title: Member
  • Group: Members
  • 6 posts

Posted 10 July 2012 - 03:40 PM

Hi, it's just a simple html page with javascript. I uploaded it to jsfiddle to make sharing easy. Just click the link, click "run" on the and you'll see two input boxes - that's all that is to it

:-)

#4 GrumpyMonkey

GrumpyMonkey

  • Title: 不機嫌な猿
  • Group: Evernote Evangelist
  • 7,589 posts

Posted 10 July 2012 - 03:50 PM

Hi, it's just a simple html page with javascript. I uploaded it to jsfiddle to make sharing easy. Just click the link, click "run" on the and you'll see two input boxes - that's all that is to it

:-)


Thanks. I'm out of the house on my Mac today, and I was thinking it might be good for others who wander into this thread to see what it will look like before they do it. I'll give it a try when I am back home in the evening.

#5 dlu

dlu

  • Title: Evernote Employee
  • Group: Evernote Employee
  • 2,004 posts

Posted 10 July 2012 - 09:19 PM

How cool :) Thanks for posting!
If you have a serious issue with Evernote, you can submit a support request here. Evernote employees read the forums, but it is not run by customer support or a way to directly get customer support.

Check out our Knowledgebase.
View our User Manuals here: Mac or Windows
Check out the Getting Started Guide
Still need help? Submit a support request here.

#6 iwqnna

iwqnna

  • Pip
  • Title: Member
  • Group: Members
  • 6 posts

Posted 10 July 2012 - 10:21 PM

Update: I've noticed there are some bugs.

The date/time should not be formatted with separators, it looks like all times are set to now on import.
I've noticed that Firefox's export format is slightly different, with a <DD> with site description and also modified date/time. It should be possible to include this info with a few minor tweaks to the javascript.

Please also look at hiw I've implemented folder-tag conversion. All notes are set with all parent folders as tags, and all tags are concatenated folder names with 'root' at the bottom. I did it this way to be sure that I did not lose any information, and preserve a kind of namespace for the imported bookmarks vs existing tags/notes.

#7 rijk

rijk

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 19 September 2012 - 10:45 PM

This is great, thanks. I also have notes attached to many of my individual bookmarks (as they originally came from Delicious). Do you know how I could use your import tool to maintain this additional info as well? In the html file I am importing from (exported from Google Bookmarks) the note data comes after the <DD> tag.

e.g. <DT><A HREF="url here" ADD_DATE="date here">Bookmark name here</A><DD>More detailed note about bookmark here

#8 rijk

rijk

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 21 September 2012 - 05:49 AM

There also seem to be some issues with syncing notes imported via this script. The activity log says:

21:13:41 [576] 86% Skipping note "note name here" flagged as unsyncable (0x4) local flags (ENML_VALIDATION)

Any chance you could help with this and the above question about adapting this for Google Bookmark's use of the <DD> tag? This is the closest I've come to a satisfactory import solution when running Windows, and I'd really appreciate some help clearing the last hurdle. Many thanks.

#9 iwqnna

iwqnna

  • Pip
  • Title: Member
  • Group: Members
  • 6 posts

Posted 24 October 2012 - 02:57 PM

I am not sure if it addresses your problems, but I've got an updated version here, I created it some time ago. It fixes some problems, and as I was thinking on how I wanted to convert the folders to tags, I added options along the way


cheers,

#10 Chris Anderson

Chris Anderson

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 25 October 2012 - 05:04 PM

iwqnna

Thanks so much for creating this conversion tool, it is exactly what I am looking for!

Unfortunately when trying to use the tool I am getting an endless amount of pop up dialog boxes with either chunks of HTML, 'h3' or 'null' warnings. I have tried clicking OK on all but there seems to be thousands, so instead I click 'prevent this page from creating additional dialogs'. The resulting code is what seems to be just an XML header, and the tool says 'parsed: 0 bookmarks in 7034 subfolders'. And no option to save.

I have attached a screen grab of the results. Attached File  Screen Shot 2012-10-25 at 18.03.01.png   64.81K   13 downloads

The HTML I am pasting in seems to be the right format as it begins with <!DOCTYPE NETSCAPE-Bookmark-file-1>.

I have tried different browsers but get the same end result.

Any suggestions would be very helpful. Thanks again for the tool and you help with my issue.
Chris

#11 Chris Anderson

Chris Anderson

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 25 October 2012 - 05:24 PM

I've Just thought, could it be that I am doing this on a Mac rather than Windows machine?

I can't think why this would make a difference though?

#12 iwqnna

iwqnna

  • Pip
  • Title: Member
  • Group: Members
  • 6 posts

Posted 25 October 2012 - 06:28 PM

I've Just thought, could it be that I am doing this on a Mac rather than Windows machine?

I can't think why this would make a difference though?


I can see that there are some debug alerts() left in the code - I removed them (see link @ first posting)

Sorry! This jsfiddele thing did not turn out quite as I expected...

I haven't tested this on a mac, but I think that the Netscape format is fairly cross platform. In any case, it should be easy to change the code to catch variations in the export format. (I think the latest version works with bookmarks exported from Firefox)

q

#13 Chris Anderson

Chris Anderson

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 25 October 2012 - 07:23 PM

Thanks for the update iwqnna.

The dialog boxes have disappeared but the file still doesn't pass anything other than an XML header.

Strangely, when I try your original jsfiddle I get an output as desired but it only imports a few notes before crashing (i'm guess this is due to some of the issues raised as per the above comments).

Thanks again for the help with this, at this stage I am willing to do anything to try and get this to work ;)

If you can get this to work I would so much appreciate it. If it helped I could personal message you the HTML I am working with?

Chris

#14 rijk

rijk

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 28 October 2012 - 02:20 PM

Thanks iwqnna,

Just to confirm that I am having the same issues as Chris (and I'm on Windows) - the ZnmKF and ZnmKF/1/ versions of the jsfiddle only return an XML header (with and without dialog boxes, respectively); whereas the original version seems very close to working as expected, bar the two issues mentioned above. Any further advice would be much appreciated. Thanks.

#15 iwqnna

iwqnna

  • Pip
  • Title: Member
  • Group: Members
  • 6 posts

Posted 12 December 2012 - 10:02 AM

With the kind help of Chris, which provided test data and lots of feedback, I've sorted out some issues, and I hope it should work now. Link updated.

q

#16 Dave Trowbridge

Dave Trowbridge

  • Pip
  • Title: Member
  • Group: Members
  • 4 posts

Posted 25 December 2012 - 02:26 AM

I just tried it and got "Could not import notes, error:INVALID_ROOT (Error in line 6, token "META")" I left all of the existing settings as-is in the form, and checked all three "Include in note body" boxes.

#17 shioru

shioru

  • Pip
  • Title: Member
  • Group: Members
  • 5 posts

Posted 06 April 2013 - 06:41 AM

I just tried it and got a missing note error, this is the start of the enex file ... any clues?

 

<?xml version="1.0" encoding="utf-8"?><!DOCTYPE en-export SYSTEM "http://xml.evernote....note-export.dtd"><en-export export-date="20130406T055438Z" application="Evernote/Windows" version="4.x" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:myCustDate="urn:custDate"><note><title>DBS iBanking</title><content><![CDATA[  <en-note>DBS iBanking<br /><a href="https://internet-ban...m.sg/IB/Welcome">https://internet-ban...m.sg/IB/Welcome</a></en-note>]]></content><created>undefined</created><tag>TO FILE</tag><tag>TO FILE::Bookmarks bar</tag><tag>TO FILE::Bookmarks bar::Daily</tag><tag>TO FILE::Bookmarks bar::Daily::Account login</tag><note-attributes><source-url>https://internet-ban...m.sg/IB/Welcome</source-url></note-attributes></note>



#18 shioru

shioru

  • Pip
  • Title: Member
  • Group: Members
  • 5 posts

Posted 06 April 2013 - 06:51 AM

OK I exported a note from Evernote Windows and opened the enex file, copied the first chunk (that wasn't an actual note) and pasted that into my enex file of exported Chrome bookmarks. 

 

I still get missing note title error. However, when I delete most of the notes and just try with the first note - success! There must be a missing note title somewhere further down - does ANYONE have an idea as to how to find it and fix it? Thank you in advance. 

 

As an aside, Evernote, if it wants more users, should make it dead simple to import bookmarks as notes. I have such a huge chunk of my life (and brain) in my bookmarks that if I cannot find a solution to this, I can't see myself making the switch.



#19 shioru

shioru

  • Pip
  • Title: Member
  • Group: Members
  • 5 posts

Posted 06 April 2013 - 07:24 AM

Sorry to keep spamming this thread - I've been experimenting with chunks of the output text, and have managed to import some. I'm beginning to think the problem is a few rogue bookmarks with either really long names or funny symbols. Can anyone shed light on what symbols would cause an error so I can do a find/replace and fix the problem without having to go through the entire file with a fine toothed comb? (I am not a programmer! This is all really painful for me)







Also tagged with one or more of these keywords: windows, bookmarks, import, chrome, evernote

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Clip to Evernote