Skip to content

Instantly share code, notes, and snippets.

View klickreflex's full-sized avatar

Daniel Wentsch klickreflex

View GitHub Profile
@klickreflex
klickreflex / import.rb
Last active June 4, 2020 08:41
Import Instagram Export to Day One Journal (requires the Day One CLI tool)
require 'json'
file = File.read('media.json')
data_hash = JSON.parse(file)
photos = data_hash['photos']
i = 0
photos.each do |key, value|
date = key['taken_at']
path = key['path']