Code Monkey home page Code Monkey logo

dayone-json-to-md's Introduction

Day One JSON to Markdown (Obsidian)

A python script that converts Day One exports (JSON packed with media files into a zip file) to Markdown.

This is useful for exporting Day One entries to Obsidian. By default it uses Obsidian's ![[]] linking, change relativeMediaLinking value inside to False if you want regular Markdown links ( ![]()).

Based on ze-kel's efforts to export text, headers, tags, date, photos and audios. I've extended this a bit to include videos and pdf attachments, as well.

Usage

  1. Install python 3
  2. Go to Day One: File > Export > JSON. You can export everything to one zip file or have separate ones.
  3. Download convert.py
  4. Create "in" folder in the same directory as convert.py and place all Day One export zip files there
  5. Run python convert.py

Note: Video files that use .mov are not currently embeddable in Obsidian, but Obsidian will open the default video player when these links are clicked. I wonder if this code could be extended to use ffmpeg to convert those videos... :-)

dayone-json-to-md's People

Contributors

amamiseiya avatar davidangel avatar guybrusht avatar ze-kel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.