2 ms·
Then pipeline to a PS/PDF generator. For most modern Web publishing, this is mostly a matter of finding and extracting the <article> block, as well as metadata
by dredmorbius 5y ago
Then pipeline to a PS/PDF generator.
For most modern Web publishing, this is mostly a matter of finding and extracting the <article> block, as well as metadata (title, byline, dateline).
html-xml-tools is quite useful for this.
I'd created a WaPo extractor that reduced pagesize by about 95%, stripped the nags and paywalls, etc. Endpoint was HTML, but that could just as easily have generated PDF or ePub if I'd wanted.
- titanomachy 5y agoI applaud people who take advantage of the fact that the internet is still largely machine-readable and hackable. I am much lazier, but I use "reader mode" to similar effect.