메뉴 닫기

Evernote를 텍스트 파일로 다운로드 받는 방법

개요

Evernote 자체적으로는 enex, html, mht 포맷으로 내보낼 수 있습니다. 아래의 방법으로 에버노트의 노트를 서식이 없는 텍스트(text) 파일로 다운로드 받을 수 있습니다.

 

방법

아래 방법은 ever2simple이란 프로그램을 이용하는 것입니다. 이를 위해 먼저 python을 다운로드 받아야 합니다. 주의하실 점은 Python 2.7.12 버전을 설치하셔야 한다는 것입니다. 3.0대 버전은 알려진 오류이나 이상하게 저는 2.0대의 다른 버전을 설치해도 오류가 발생합니다. 윈도우 설치용으로 Windows x86-64 MSI installer를 다운로드 받아 설치합니다.

설치할 때 명령 프롬프트에서 파이썬 명령을 실행할 수 있도록 아래와 같이 Add python.exe to Path에 체크합니다.

 

명령 프롬프트 창에 아래와 같이 입력하여 ever2simple을 설치합니다.

pip install -U ever2simple

 

Evernote를 실행하여 노트를 enex 포맷으로 내보내기 합니다. 노트를 하나만 선택한 상태로 내보내기하면 해당 노트만 내보내기되므로 전체 노트를 선택한 후에 내보내기하셔야 합니다.

명령 프롬프트 창에 아래 명령을 입력합니다.

# 형식
ever2simple [내보낸파일이름].enex --output [내보낼디렉토리] --format dir

# 예시(enex 파일을 내보낸 디렉토리에서 명령 프롬프트를 실행한 경우)
ever2simple Evernote.enex --output test --format dir

 

십중팔구 아래와 같은 오류 메시지가 표시될 것입니다.

Traceback (most recent call last):
File "D:\tools\Python27\Scripts\ever2simple-script.py", line 9, in 
load_entry_point('ever2simple==2.0', 'console_scripts', 'ever2simple')()
File "d:\tools\python27\lib\site-packages\ever2simple\core.py", line 21, in main
converter.convert()
File "d:\tools\python27\lib\site-packages\ever2simple\converter.py", line 80, in convert
notes = self.prepare_notes(xml_tree)
File "d:\tools\python27\lib\site-packages\ever2simple\converter.py", line 52, in prepare_notes
note_dict['createdate'] = created_string.strftime(self.date_fmt)
ValueError: Invalid format string

이때에는 C:\Python27\Lib\site-packages\ever2simple 폴더에 있는 converter.py16행에 있는 문구를 아래와 같이 수정해야 합니다.

원본

date_fmt = '%h %d %Y %H:%M:%S'

수정

date_fmt = '%b %d %Y %H:%M:%S'

 

위와 같이 수정한 후에 다시 실행해보면 정상적으로 동작합니다.

 

문제 해결

아래와 같은 오류가 발생한다면 Python 3.0대 버전을 설치해서 그렇습니다. Python 2 버전대를 설치해 주시기 바랍니다.

Traceback (most recent call last):
  File "C:\Users\jihunx\AppData\Local\Programs\Python\Python36\Scripts\ever2simple-script.py", line 11, in <module>
    load_entry_point('ever2simple==2.0', 'console_scripts', 'ever2simple')()
  File "c:\users\jihunx\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 565, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "c:\users\jihunx\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 2631, in load_entry_point
    return ep.load()
  File "c:\users\jihunx\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 2291, in load
    return self.resolve()
  File "c:\users\jihunx\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 2297, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "c:\users\jihunx\appdata\local\programs\python\python36\lib\site-packages\ever2simple\core.py", line 18
    print 'File does not exist: %s' % filepath
                                  ^
SyntaxError: Missing parentheses in call to 'print'

 

참고

댓글 남기기