Tuesday, August 01, 2023

So You Want to Ditch Evernote. Who Can Blame You?

Fair warning : haven't tried this out myself. I just hear people complaining that they're locked into Evernote and they want to stop paying for it, but don't know what to do.

Can you tell me how to pull my data out of Evernote?

Export Notes from Evernote:

  • Open Evernote on your computer or access the web version (www.evernote.com).
  • Select the notes you want to export. You can hold down the "Ctrl" key (or "Cmd" key on Mac) and click on individual notes to select multiple ones.
  • Right-click on the selected notes and choose "Export Notes..." (on Windows) or "Export..." (on Mac).

2 Choose Export Format:

  • Evernote allows you to export your notes in two formats: "Evernote XML Format (.enex)" or "HTML" format.
  • The ".enex" format is specific to Evernote and will allow you to import your notes back into Evernote in the future if needed.
  • The "HTML" format is more generic and can be easily opened in web browsers or imported into other note-taking applications.

3 Save the Exported File:

  • Choose a location on your computer where you want to save the exported file.
  • Give the file a meaningful name that reflects the content or purpose of the exported notes.

Repeat for Other Notebooks:

  • If you have multiple notebooks in Evernote, you will need to repeat the export process for each notebook you want to back up.

Check the Exported Data:

  • Once the export is complete, you can open the exported ".enex" file using Evernote (if you chose that format) or use a web browser to view the exported HTML files. Make sure the data is intact and organized as expected.

Alternative Export Options:

  • If you are comfortable with coding and programming, you can explore Evernote's Developer API (Application Programming Interface) to export your data programmatically. However, this option requires some technical knowledge.

Explore Third-Party Tools:

  • Some third-party tools might offer features to help you export your Evernote data. You can search for such tools online, but be cautious and ensure that they are reputable and safe to use.

Can you give me a python script to do that?

pip install evernote3 # click in the code to select

import evernote.edam.userstore.constants as UserStoreConstants import evernote.edam.type.ttypes as Types import evernote.edam.notestore.ttypes as NoteTypes import evernote.api.client as EvernoteClient # Replace these values with your Evernote developer tokens sandbox = False # Set to True if you are using a sandbox (test) account auth_token = "YOUR_EVERNOTE_AUTH_TOKEN" def export_all_notes(): client = EvernoteClient(token=auth_token, sandbox=sandbox) note_store = client.get_note_store() # Retrieve all notebooks notebooks = note_store.listNotebooks() for notebook in notebooks: notebook_name = notebook.name print(f"Exporting notes from notebook: {notebook_name}") # Create a NoteFilter to fetch all notes from the current notebook note_filter = NoteTypes.NoteFilter() note_filter.notebookGuid = notebook.guid # Specify the result spec to include content result_spec = NoteTypes.NotesMetadataResultSpec(includeContent=True) # Retrieve the list of notes in the notebook note_list = note_store.findNotesMetadata(auth_token, note_filter, 0, 250, result_spec) for note_metadata in note_list.notes: note_guid = note_metadata.guid note = note_store.getNote(auth_token, note_guid, True, True, False, False) # Save the note content to a file file_name = f"{notebook_name}_{note.title}.enex" with open(file_name, "w", encoding="utf-8") as f: f.write(note.content) print(f"Note '{note.title}' exported to '{file_name}'") if __name__ == "__main__": export_all_notes()

No comments: