使用Markdown格式从Evernote迁移到Simplenote
项目描述
简介
Evernote和Simplenote是两个基于网络的笔记应用。Evernote更注重为最终用户提供丰富的文本和上传语音剪辑以及图像进行OCR的能力。另一方面,Simplenote正如其名所示,采取了一种更简单的方法。它只存储您的纯文本笔记,仅此而已。
此软件包安装了一个脚本,可以帮助您通过导出笔记为文件的方式从Evernote迁移到Simplenote。该脚本将Evernote的enex导出转换为json、csv或*.txt文件目录。
Evernote提供的HTML由html2text库处理。这把HTML转换为Markdown。Simplenote的Web UI支持预览Markdown笔记,因此这非常合适。
安装
您可以使用以下方式轻松安装此软件包(最好在虚拟环境中):
$ pip install -U ever2simple
开发安装
使用git克隆此存储库
$ git clone https://github...
进入代码目录
$ cd ever2simple
安装并保留代码的本地更改
$ pip install -e .
用法
安装完成后,您将有一个新的可执行文件可供使用。在运行转换之前,您需要导出您的笔记。这可以在桌面客户端完成。您可以选择要导出的笔记,然后导出笔记到存档...,并选择enex格式。
一旦拥有它,你就可以运行脚本,将 --output 设置为目录,并使用 dir 作为 --format 的参数。
$ ever2simple my_evernote.enex --output simplenote_dir --format dir
这将把每个笔记输出为一个以数字命名的 *.txt 文件,并放入 simplenote_dir 目录(如果不存在则创建)。
现在您可以在此处请求Simplenote的支持,以启用Dropbox同步到您的账户: https://simplenote.com/contact-us/
一旦他们为您启用Dropbox同步,请访问 https://app.simplenote.com/settings 并进行配置(在最后一节)。
之后,将您转换的 *.txt 笔记文件复制到Dropbox中的Simplenote目录内,并从 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导入,只支持通过Dropbox导入的文本文件。
导出到目录将不会保留笔记中的标签。
此脚本不支持任何附件,因为Simplenote不支持它们。此脚本不会忽略带有附件的笔记。这可能会导致导入的笔记看起来很奇怪,文本很少或没有。
Evernote的导出看起来像那些可怕的Microsoft Word html导出。您可能在运行脚本之前想清理一下 content 数据。这留给用户作为练习。
Evernote中的笔记随机包含对您今天没有害处的Unicode字符,但将来可能会让您头疼。此脚本只是将问题推给了别人,没有对文本进行额外的清理。最奇怪的字符是Unicode空格,为什么我们的笔记里需要Unicode空格呢?1?!
链接
待办事项
编写一些基本测试
为 DictWriter 编写Unicode
在Python 3上测试
更改
2.0 (2016-03-13)
更新为将文本文件输出到目录。[tiangolo]
修复 created 和 updated 日期解析问题。[austinjp]
1.1 (2015-03-25)
忘记编写变更日志条目。[claytron]
1.0 (2015-03-25)
修复HTML2Text导入问题。[claytron]
修复 xmlSAX2Characters: huge text node 错误。[claytron]
将版本号升级以避免必须使用 pip install --pre。[claytron]
1.0a3 (2011-10-11)
将 python-dateutil 锁定在2.0以下,以避免拉下仅Python 3的版本。[claytron]
1.0a1 (2011-06-14)
初始发布
项目详情
ever2simple-2.0.zip 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | d42932615d1ebad542536f76105e1dacd7c3d5b16ace0a4534a5eddc8f9f2e9a |
|
MD5 | a08a2fba4a5bd6a2745950887602c3e5 |
|
BLAKE2b-256 | 8cab64266e3ee7b0d495342f7b72e862db2a20e73676f0ffbfefa7ba4a8896f5 |