Skip to content

Instantly share code, notes, and snippets.

@coderunner007
coderunner007 / journey_to_obsidian.py
Last active December 2, 2023 20:24
Convert Journey journal backup to Obsidian markdown files. Journey: https://journey.cloud/app/ , Obsidian: https://obsidian.md/
import os
import json
import time
import shutil
# Change the variables here according to what is present in your filesystem
journey_input_folder = os.path.join(os.environ['HOME'],"Documents","Journey","journey-<hash>")
obsidian_output_folder = os.path.join(os.environ['HOME'],"Documents","Journey","FromJourney")
obsidian_attachments_folder = os.path.join(os.environ['HOME'],"Documents","Journey", "FromJourney", "attachments")
# To convert from Daily Note to python's date format, check this gist out: https://gist.github.com/asafge/0b13c5066d06ae9a4446