dowpy – WordPress Posts to Day One

I write private journal entries and public journal entries. The public ones get posted here. I had been looking for a way to get those public entries into Day One so then when I’m reviewing the “On this date…” feature of the app, I see not only my private Day One journal entries but also my WordPress posts from that date. First step was to bulk import all of my old WordPress posts (20+ years, crazy).

Next up was to find some way to make sure that new WordPress posts somehow got auto-imported into my Day One journal. Enter dowpy: a python script that pulls new WordPress entries into Day One.

I’ve had this script up and running for a few weeks now without error so figure it’s time to share it in case anyone else has a similar use case.

I run this via cron on my Mac. It grabs the ATOM feed of my website and pulls in new entries into a Day One Journal called, surprise, “WordPress Entries.”

https://github.com/sjimwillis/dowpy

For it to work you’ll probably want to:

  • make sure it runs daily
  • make sure to have full entries in your feed and not just excerpts
  • it only pulls in what’s in your feed (so, if you want pages as well as posts in your feed you’ll need to make some changes to the stock WP feed)
  • it only pulls in what’s in your feed, so if you want to backfill older posts to get caught up (I pulled in about 20 years of my older posts), read How to Bulk Import Posts into Day One.

It does a good enough job at handling links and images, though not perfect. I should also note that Apple really doesn’t want you to use cron. They want you to use launchd instead. I will spin up a config file for launchd when I get some time as that would allow the script to run even if my machine is asleep, which would be nice.

Posted

in

,

Current Spins

Top Albums

Check out my album Set It All Down on your favorite streaming service.


Posts Worth Reading:


Letterboxd


Reading Notes

  • Who profits from our constant state of dissatisfaction? The answer, of course, is painfully obvious. Every industry that sells a solution to a problem you […]
  • the shifts have been in place for awhile. A certain kind of book—say those reviewed in the NYRB—will become like opera, or theater, or ballet, […]
  • • No more struggle: “Whatever arises, train again and again in seeing it for what it is. The innermost essence of mind is without bias. […]
  • The real problem, in my mind, isn’t in the nature of this particular Venture-Capital operation. Because the whole raison-d’etre of Venture Capital is to make […]
  • . The EU invokes a mechanism called the precautionary principle in cases where an innovation, such as GMOs, has not yet been sufficiently researched for […]

Saved Links