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, and restarting the Evernote app between each batch.
Then you can combine them into one folder like this:
exporteer_evernote_osx merge TARGET_DIR FIRST_BATCH_DIR SECOND_BATCH_DIR..
Finally, 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 TARGET_DIR
This may take a while with large numbers of notes - my current implementation is pretty inefficient.
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.
Metadata
Release files for exporteer-evernote-osx 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exporteer_evernote_osx-0.0.4.tar.gz | 7.2 kB | Without provenance | Details for exporteer_evernote_osx-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exporteer_evernote_osx-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for exporteer_evernote_osx-0.0.4-py3-none-any.whl |
Total release size: 16.4 kB
Release files / exporteer_evernote_osx-0.0.4.tar.gz
| Download URL | exporteer_evernote_osx-0.0.4.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cde9f917b96c08ec070c2f42eb1935e04a0bd1928f3250d812bfc74757458d4
|
|
BLAKE2b-256 checksum How to use checksums |
679fd4584e1bc0f87ba2c274ee7994632b21af75cb279db82215329ba4226324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Release files / exporteer_evernote_osx-0.0.4-py3-none-any.whl
| Download URL | exporteer_evernote_osx-0.0.4-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dcd938380958b9a2a683bacd5e61342146571dc69af6b774939034c60553674
|
|
BLAKE2b-256 checksum How to use checksums |
16dcddaef86046bb6f539f77c14e0cf79841616e08d8afca08d4750f00f6dda0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Security for exporteer-evernote-osx 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.