Skip to content

Instantly share code, notes, and snippets.

@motebaya
Last active August 1, 2025 11:10
Show Gist options
  • Save motebaya/a2ee996fe6c8273cfcf73b2d4ed22b9e to your computer and use it in GitHub Desktop.
Save motebaya/a2ee996fe6c8273cfcf73b2d4ed22b9e to your computer and use it in GitHub Desktop.
parse backup file mobile app: net.fast_notepad_notes_app.fastnotepad
#!/usr/bin/python
# @github.com/motebaya - 6/4/2025
import json, re, datetime, sys
if (len(sys.argv) < 2):
print("Usage: fastnote.py <file>")
sys.exit(1)
FILE = sys.argv[1]
x = open(FILE, 'r', encoding='utf-8').read()
j = x.split('{[!*|@]}{}{[!*|@]}')
jex = j[0].split("^!")
jex.pop(0)
jk = json.loads(j[1])
d = []
for jj in jex:
nj = jj.split(";;")
k = f"_{nj[0]}"
t = int(nj[1].split(';')[1])
d.append({
"key": k,
"tms": t,
"date": datetime.datetime.fromtimestamp(t).strftime('%Y-%m-%d %H:%M:%S'),
"value": jk.get(k)
})
open("fastnote.json", "w").write(json.dumps(d, indent=4))
print(d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment