使用标记格式从evernote迁移到simplenote
ever2simple的Python项目详细描述
简介
Evernote和Simplenote是两个基于在线的笔记应用程序。印象笔记 重点在于为最终用户提供富文本和上传功能 用于ocr的语音剪辑和图像。另一方面,从 它的名字,是一个简单得多的方法。它只是存储你的纯文本 注意,就是这样。
此软件包安装一个脚本,帮助您从evernote迁移到 通过将注释导出为文件来简化。剧本 将获取evernoteenex导出并将其转换为json、csv或 *.txt文件的目录。
evernote提供的html由html2text处理 图书馆。这将把html转换成Markdown。simplenote web用户界面 支持在降价时预览注释,因此效果很好。
安装
您可以使用easy_install或pip作为 跟随(最好在虚拟机中):
$ pip install -U ever2simple
开发安装
使用git:
克隆此存储库$ git clone https://github...
输入代码目录:
$ cd ever2simple
安装保留本地更改的实时代码:
$ pip install -e .
使用量
安装后,您将有一个新的可执行文件可供使用。 在运行转换之前,需要导出注释。 这可以从桌面客户端完成。您可以选择注释 想要导出,然后Export Notes to Archive...,并选择 enex格式。
一旦您拥有了它,就可以在设置^{tt10}的文件上运行脚本$ 使用dir作为--format的参数:
$ ever2simple my_evernote.enex --output simplenote_dir --format dir
它将*.txt文件中的每个注释输出到 {TT14} $目录(如果不存在则创建它)。
现在可以请求simplenote的支持来启用dropbox同步 到您的帐户:https://simplenote.com/contact-us/
一旦它们为您启用了Dropbox同步,请转到 https://app.simplenote.com/settings并对其进行配置(在最后一节)。
之后,将转换后的*.txt注释文件复制到simplenote 在Dropbox中的目录并从 https://app.simplenote.com/settings。
如果要导出到csv,可以将csv传递到--format 参数:
$ ever2simple my_evernote.enex --output simplenote.csv --format csv
如果要导出到json,可以将json传递给--format 参数(或者不使用该参数,因为json是默认值):
$ ever2simple my_evernote.enex --output simplenote.json --format json
命令行帮助
通过运行ever2simple -h:
提供的帮助usage: ever2simple [-h] [-o OUTPUT] [-f {json,csv,dir}] enex-file Convert Evernote.enex files to Markdown positional arguments: enex-file the path to the Evernote.enex file optional arguments: -h, --help show this help message and exit -o OUTPUT, --output OUTPUT the path to the output file or directory, leave black to output to the terminal (stdout) (default: None) -f {json,csv,dir}, --format {json,csv,dir} the output format, json, csv or a directory (default: json)
注释和注意事项
- simplenote不再支持json和csv导入,只支持通过 升降箱。
- 导出到目录将不会保留注释中的标记。
- 这不处理任何附件,因为simplenote不支持 他们。此脚本不会忽略具有附件的便笺。这个 可能会导致一些奇怪的注释被导入,几乎没有文本。
- Evernote的导出看起来像那些可怕的Microsoft Word HTML 出口。您可能需要在之前清理content数据 运行脚本。这留给用户作为练习。
- Evernote中的注释随机包含非Unicode字符 今天对你真的很有害,但以后可能会在后面咬你。这个 脚本只是推卸责任,没有对文本进行额外的清理。 最奇怪的字符是unicode空间,我们到底为什么需要 注释中的Unicode空格?1个?!
链接
待办事项
- 编写一些基本测试
- 用于DictWriter 的Unicode
- 在python 3上测试
更改
2.0(2016-03-13)
- 更新以将文本文件输出到目录。 [天高洛]
- 修复created和updated日期解析。 [奥斯丁市]
1.1(2015-03-25)
- 忘记写入更改日志项。 [克莱顿]
1.0(2015-03-25)
- 修复html2text导入的问题。 [克莱顿]
- 修复了xmlSAX2Characters: huge text node错误的问题。 [克莱顿]
- 凹凸版本以避免使用pip install --pre。 [克莱顿]
1.0a3(2011-10-11)
- pinpython-dateutil小于2.0,这样python 3 只有版本没有被拉下来。 [克莱顿]
1.0A1(2011-06-14)
- 初始版本