Allow any filename. #1

Merged
ryanpcmcquen merged 2 commits from patch-1 into master 2018-10-16 08:06:34 +02:00
2 changed files with 7 additions and 5 deletions
+3 -4
View File
@@ -1,12 +1,11 @@
# Standard Notes to Evernote or Joplin # Standard Notes to Evernote or Joplin
## Use ## Usage:
Rename your exported file as notes.txt, then...
```bash ```bash
python3 standard-notes-to-enex.py notes.txt python3 standard-notes-to-enex.py SN_Archive.txt
``` ```
If a name like `SN_Archive.txt` is not provided, the script will assume your file is called `notes.txt`.
## Tutorial ## Tutorial
+4 -1
View File
@@ -1,7 +1,10 @@
import json import json
import html import html
from sys import argv
data = json.load(open('notes.txt')) source = argv[1] if len(argv) > 1 else 'notes.txt'
data = json.load(open(source))
def text_from_html(title, text): def text_from_html(title, text):