evernote

evernote-dump

since 2021-04-01

  • Windows に Evernote Legacy を入れて、ノートブックごとに enex を出力(Dropboxフォルダに保存)
  • Dropbox フォルダ上で evernote-dump を実行してノートブックと同じ名前のフォルダに、各ノートの markdown + media サブディレクトリを作成

https://github.com/exomut/evernote-dump

以下は WSL で作業

$ git clone https://github.com/exomut/evernote-dump.git
$ cd evernote-dump/
$ python3.8 -m venv venv38
$ . venv38/bin/activate
$ pip install -U pip
$ pip install -r requirements.txt
$ python -m evernote_dump -h

$ cd /mnt/c/Users/nishimotz/Dropbox/***/enex
$ PYTHONPATH=/home/nishimotz/***/evernote-dump python -m evernote_dump ノートブック名.enex

media になにかおかしなファイル名を作ろうとして落ちることがあるようだ。一部伏せ字。

タイトルに半角ピリオドがあって、それがファイル拡張子ではない、という場合かな。。

エラーにならない場合も "名刺/media/2014-12-23_12-48-42._-_名刺" みたいなファイル名で保存されることがある。

名刺むずかしいな。。

Processing Note: **** ******.com/jp - 名刺
---Exporting Attachment: **** ******.com/jp - 名刺
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/nishimotz/work/2021/evernote-dump/evernote_dump/__main__.py", line 33, in <module>
    run_parse(settings)
  File "/home/nishimotz/work/2021/evernote-dump/evernote_dump/dump.py", line 27, in run_parse
    parser.parse(file)
  File "/usr/local/lib/python3.8/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/local/lib/python3.8/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/usr/local/lib/python3.8/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/home/nishimotz/src/Python-3.8.3/Modules/pyexpat.c", line 461, in EndElement
    ("(N)", string_intern(self, name)))
  File "/usr/local/lib/python3.8/xml/sax/expatreader.py", line 336, in end_element
    self._cont_handler.endElement(name)
  File "/home/nishimotz/work/2021/evernote-dump/evernote_dump/note_parser/note_parser.py", line 68, in endElement
    self.attachment.finalize(self.settings)
  File "/home/nishimotz/work/2021/evernote-dump/evernote_dump/note_parser/attachment.py", line 80, in finalize
    self.create_file()
  File "/home/nishimotz/work/2021/evernote-dump/evernote_dump/note_parser/attachment.py", line 36, in create_file
    with open(path, 'wb') as outfile:
FileNotFoundError: [Errno 2] No such file or directory: '名刺/media/2018-11-26_02-17-06.com/jp_-_名刺'
evernote.txt · 最終更新: 2021/04/01 17:58 by Takuya Nishimoto
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0