{"id":229,"date":"2013-08-03T11:12:28","date_gmt":"2013-08-03T11:12:28","guid":{"rendered":"http:\/\/www.ramandv.com\/blog\/?p=229"},"modified":"2013-08-04T04:37:58","modified_gmt":"2013-08-04T04:37:58","slug":"catch-com-to-evernote-migration","status":"publish","type":"post","link":"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/","title":{"rendered":"Catch.com to Evernote migration"},"content":{"rendered":"\n<!-- Quick Adsense WordPress Plugin: http:\/\/quickadsense.com\/ -->\n<div class=\"e9e85ee105af8a6a4a383deebf1fa216\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-4917982260456644\";\r\n\/* ramandv.com-ad1 *\/\r\ngoogle_ad_slot = \"9226290554\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>I have been using catch notes for the past 2 years. When I knew the news about catch notes shutting down &#8220;Catch will no longer be available after 30 August 2013.&#8221;, I started looking for alternatives. One of the best alternative is evernote. Though I have tried few years ago, but I havent used it effectively.<\/p>\n<p><a href=\"http:\/\/support.catch.com\/customer\/portal\/articles\/988949-how-can-i-export-notes-on-the-web-interface-\">http:\/\/support.catch.com\/customer\/portal\/articles\/988949-how-can-i-export-notes-on-the-web-interface-<\/a><\/p>\n<p>As per the above URL, exported my notes from catch.com<\/p>\n<p><a href=\"http:\/\/support.catch.com\/customer\/portal\/articles\/1243609-importing\">http:\/\/support.catch.com\/customer\/portal\/articles\/1243609-importing<\/a><\/p>\n<p>Though the exported data contains enex file to import into Evernote. It does not automatically add the pictures and tags.<\/p>\n<p>As I had only few pictures in my notes, I manually added it to the notes in Evernote. But I had around 800 notes, I dont want to tag each and every note manually. So I wrote a simple python script to convert all the #tag to evernote tags.<\/p>\n<p>Check the gist at <a href=\"https:\/\/gist.github.com\/ramandv\/6146111\">https:\/\/gist.github.com\/ramandv\/6146111<\/a><\/p>\n<pre><code>from evernote.api.client import NoteStore\nfrom evernote.api.client import EvernoteClient\n\n#Get your dev token from the following URL\n#https:\/\/www.evernote.com\/api\/DeveloperToken.action\n\ndev_token = \"&lt;your api token&gt;\"\nclient = EvernoteClient(token=dev_token, sandbox=False)\nnoteStore = client.get_note_store()\n\n\nfilter = NoteStore.NoteFilter()\n\n#Find the guid of your catch notebook, by selecting the catch notebook and see the URL\n#https:\/\/www.evernote.com\/Home.action#b=&lt;guid&gt;\nfilter.notebookGuid = \"&lt;catch_notebook_guid&gt;\"\n\nspec = NoteStore.NotesMetadataResultSpec()\nspec.includeTitle = True\nspec.includeTagGuids = True\n\nindex = 0\nwhile True:\n    noteList = noteStore.findNotesMetadata( dev_token, filter, index, 50, spec)\n    for note in noteList.notes:\n        index = index + 1\n        if (note.tagGuids != None and len(note.tagGuids) &gt; 0):\n            print \"already tags present, so skipping....\"\n            print \"--------------[\" + str(index) + \"]\"\n            continue\n\n        note = noteStore.getNote(dev_token, note.guid, True, True, True, True)\n        content = note.content\n        print 'Title:', note.title,\n        print 'Content:', content\n        print \"--------------[\" + str(index) + \"]\"\n        titlecontent = note.title + \" \" + content\n\n        #Remove HTML tags\n        titlecontent = re.sub('&lt;[^&lt;]+?&gt;', ' ', titlecontent)\n\n        #get tags\n        tags = [word for word in titlecontent.split() if word.startswith('#') and len(word) &gt; 1]\n\n        #remove unwanted characters\n        tags = [word.strip(\" #;.,\").lower() for word in tags ]\n        tags = [word.split()[0] for word in tags if len(word.split()) &gt; 0 ]\n        tags = [word.strip(\" #;.,\") for word in tags if len(word.strip(\" #;.,\")) &gt; 0 ]\n\n        #remove duplicate tags\n        tags_set = set(tags)\n        tags = list(tags_set)\n\n        #Add tags only if the actual note does not contain tags\n        if len(tags) &gt; 0 and (note.tagNames == None or len(note.tagNames) == 0):\n            print \"[\" + str(index) + \"]###########\" + str(tags)\n            note.tagNames = tags\n            noteStore.updateNote(dev_token, note)\n\n    if noteList.totalNotes &lt;= index:\n        break;\n    print \"FETCHING NEXT PAGE=======================\"\n<\/code><\/pre>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>I have been using catch notes for the past 2 years. When I knew the news about catch notes shutting down &#8220;Catch will no longer be available after 30 August 2013.&#8221;, I started looking for alternatives. One of the best &hellip; <a href=\"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[18],"tags":[20,19],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Catch.com to Evernote migration  - Articles for Developers\" \/>\n<meta property=\"og:description\" content=\"I have been using catch notes for the past 2 years. When I knew the news about catch notes shutting down &#8220;Catch will no longer be available after 30 August 2013.&#8221;, I started looking for alternatives. One of the best &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/\" \/>\n<meta property=\"og:site_name\" content=\"Articles for Developers\" \/>\n<meta property=\"article:published_time\" content=\"2013-08-03T11:12:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-08-04T04:37:58+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ramandv\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.ramandv.com\/blog\/#website\",\"url\":\"http:\/\/www.ramandv.com\/blog\/\",\"name\":\"Articles for Developers\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.ramandv.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/#webpage\",\"url\":\"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/\",\"name\":\"Catch.com to Evernote migration - Articles for Developers\",\"isPartOf\":{\"@id\":\"http:\/\/www.ramandv.com\/blog\/#website\"},\"datePublished\":\"2013-08-03T11:12:28+00:00\",\"dateModified\":\"2013-08-04T04:37:58+00:00\",\"author\":{\"@id\":\"http:\/\/www.ramandv.com\/blog\/#\/schema\/person\/ca1ede7143462f244081566e6ff97658\"},\"breadcrumb\":{\"@id\":\"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Catch.com to Evernote migration\"}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.ramandv.com\/blog\/#\/schema\/person\/ca1ede7143462f244081566e6ff97658\",\"name\":\"ramandv\",\"url\":\"http:\/\/www.ramandv.com\/blog\/author\/ramandv\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/","og_locale":"en_US","og_type":"article","og_title":"Catch.com to Evernote migration  - Articles for Developers","og_description":"I have been using catch notes for the past 2 years. When I knew the news about catch notes shutting down &#8220;Catch will no longer be available after 30 August 2013.&#8221;, I started looking for alternatives. One of the best &hellip; Continue reading &rarr;","og_url":"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/","og_site_name":"Articles for Developers","article_published_time":"2013-08-03T11:12:28+00:00","article_modified_time":"2013-08-04T04:37:58+00:00","twitter_misc":{"Written by":"ramandv","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/www.ramandv.com\/blog\/#website","url":"http:\/\/www.ramandv.com\/blog\/","name":"Articles for Developers","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.ramandv.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/#webpage","url":"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/","name":"Catch.com to Evernote migration - Articles for Developers","isPartOf":{"@id":"http:\/\/www.ramandv.com\/blog\/#website"},"datePublished":"2013-08-03T11:12:28+00:00","dateModified":"2013-08-04T04:37:58+00:00","author":{"@id":"http:\/\/www.ramandv.com\/blog\/#\/schema\/person\/ca1ede7143462f244081566e6ff97658"},"breadcrumb":{"@id":"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.ramandv.com\/blog\/catch-com-to-evernote-migration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Catch.com to Evernote migration"}]},{"@type":"Person","@id":"http:\/\/www.ramandv.com\/blog\/#\/schema\/person\/ca1ede7143462f244081566e6ff97658","name":"ramandv","url":"http:\/\/www.ramandv.com\/blog\/author\/ramandv\/"}]}},"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6YZCe-3H","_links":{"self":[{"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/posts\/229"}],"collection":[{"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":4,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":233,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/posts\/229\/revisions\/233"}],"wp:attachment":[{"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ramandv.com\/blog\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}