{
  "$type": "site.standard.document",
  "canonicalUrl": "https://handyman5.github.io//posts/creating-an-epub-from-a-wordpress-blog",
  "path": "/posts/creating-an-epub-from-a-wordpress-blog",
  "publishedAt": "2017-11-26T19:00:00.000Z",
  "site": "at://did:plc:yxhvd47p53gmb5zfiktqq3og/site.standard.publication/3mohn6mqvab25",
  "tags": "code",
  "textContent": "Recently, I wanted to create epubs of some reading material, specifically some Wordpress-hosted blogs. Rather than implementing a separate script for each blog I wanted an epub from, I wrote a tool to figure it all out for me: trivialpub.\n\n\n\nUsage is simple: provide a YAML config file, such as:\n\nAnd trivialpub will do the rest:\n\nI’ve included a number of examples in the repo, but basically, you either need to feed it a list of URLs to transform or a Python expression which, when eval’ed in context, will generate a list of URLs. (Yes, yes, eval() is the devil, I know.)\n\nPRs and suggestions welcome.",
  "title": "Creating an EPUB from a Wordpress blog"
}