Ruby script to migrate your Day One JSON archive into WordPress:
- imports your Day One entries as private posts
- uploads your photos and inserts them into your entries
- add custom fields for location data (you can use these fields in your template to show the location of a post)
- Export your Day One archive in JSON format
- Install rubypress via
sudo gem install rubypress
- Install mime-types via
sudo gem install mime-types
- Unzip your Day One archive and config the path to it (line 7)
- Set your Day One journal JSON file you want to import from (line 8)
- Add credentials for your WordPress blog (line 9)
- Run the script via
ruby path/to/import.rb
, it should output parsed data for each entry as it does the import