Exports data from the Mac Evernote app.
Project description
exporteer_evernote_osx
This is a very simple tool for exporting data from Evernote. It uses AppleScript to tell the Mac Evernote app to perform an export.
Usage
Install:
- Install python3 and pip
pip3 install exporteer_evernote_osx
Before running an export, you might wish to ensure the app has synced with the cloud:
exporteer_evernote_osx sync
To export all your notes to HTML files, with each notebook in a separate subdirectory:
exporteer_evernote_osx export -n TARGET_DIR
To export all notes matching a query (for instance, notes created this year) to an enex file:
exporteer_evernote_osx export -Eq 'created:year' TARGET_FILE.enex
Links between notes
Evernote's export functionality does not embed the note's unique identifier, or the name of the notebook to which the note belongs, into the HTML or enex files. Also, any links between notes are exported as links into the Evernote app, rather than links between the files.
To address these limitations, you can run this tool in 'enhanced' mode:
exporteer_evernote_osx export -e TARGET_DIR
In this mode, the tool modifies the HTML files after export to add extra metadata fields containing the notebook name and note URL.
(NOTE: This can be very slow and also bog down your computer.
I suggest exporting the notes in batches of at most a few hundred, using the -q
parameter.
Then you can combine them into one folder before running the relink
command below.)
After exporting in enhanced mode, you can replace the evernote://
links in the HTML files with links to the corresponding exported files, by using the relink
command:
exporteer_evernote_osx relink EXPORT_DIR
More documentation
Full command list and options can be seen in the doc folder.
Development
Setup:
- Install python3 and pip
- Clone the repo
- I recommend creating a venv:
cd exporteer_evernote_osx python3 -m venv venv source venv/bin/activate
- Install dependencies:
pip install . pip install -r requirements-dev.txt
To run integration tests (these assume you've created at least a couple notes this month in a couple different notebooks):
PYTHONPATH=src pytest
(Overriding PYTHONPATH as shown ensures the tests run against the code in the src/ directory rather than the installed copy of the package.)
To run the CLI:
PYTHONPATH=src python -m exporteer_evernote_osx ...
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/brokensandals/exporteer_evernote_osx.
License
This is available as open source under the terms of the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for exporteer_evernote_osx-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85a3577abd540a44efee4fa7424ec75d46b1592463c094f68bdf349dbb317c65 |
|
MD5 | 0a625e2e736c458492de4dabf286721b |
|
BLAKE2b-256 | ffa0bcdfc1d903a65099a187e8a9b15d8f9fc00c3d34ff34550a169ea6d93e8c |
Hashes for exporteer_evernote_osx-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ae6807d4c34a1b4ce131812e1cbbb431e8ff9f2676de9f6159be42212b4af1e |
|
MD5 | d4df4776a135a76560aaad1703f15b0e |
|
BLAKE2b-256 | a4cbfd05eee5e49b512b70bd45895e94a54abfa63b4a0192b92d9a047ed0610f |