Is there an easy way to turn a LW sequence into an epub?

post by ChristianKl · 2020-07-18T18:20:03.795Z · LW · GW · No comments

This is a question post.


No comments

I'm interested in reading Kaj's sequence on my Kindle. What's the best way to get a sequence like this into a form that I can load on my Kindle?


answer by habryka · 2020-07-18T18:46:41.090Z · LW(p) · GW(p)

There is a Github repository that I fixed up a few months ago that allows you to do this, though it's definitely not a great UI experience:

I've had it on my to-do list for a while to add a "download as PDF" and "download as Epub" button to sequence-pages, but I haven't gotten around to it, and it's not super high on the priority list, though if enough people want that, it's likely to happen faster.

comment by migueltorrescosta · 2020-07-19T00:01:04.902Z · LW(p) · GW(p)

I'd really like this feature as well

comment by Yoav Ravid · 2020-08-05T12:01:30.783Z · LW(p) · GW(p)


answer by mr-hire · 2020-08-06T15:14:44.595Z · LW(p) · GW(p)

I just checked the WebToEpub parser on the sequence page and the default parser does a fairly decent job of this.  Simply copy the first link from the sequence and put it in the "URL of first chapter" link.

then, on the second page, uncheck the 3 irrelevant links and click pack epub.  It's not perfect but it correctly creates a table of contents, does a decent job of formatting, and pulls in only the articles not the comments.

comment by Yoav Ravid · 2020-08-06T16:28:06.168Z · LW(p) · GW(p)

Could be cool to add download links to some sequences. for example Zvi's Immoral Mazes sequence is one i'm more likely to read on an e-reader, and i think it's pretty much book-length.

answer by NunoSempere · 2020-08-05T09:18:54.345Z · LW(p) · GW(p)

Use the LW GraphQL API ( [LW · GW]) to query for the html of the posts, and then use something like pandoc to translate said html into latex, and then to epub.

Link to the graphQL API [? · GW]

The command needed to get a particular post:

      post(input: {
          _id: "ZyWyAJbedvEgRT2uF"
      }) {
        result {

No comments

Comments sorted by top scores.