News for hackers. Stuff that matters.
Re:The Dubai Debt Trap by titanomachy on Friday February 18, 2022 @11:22AM (#30387697)
I don't love reading long articles in fixed-width fonts.
Re:The Dubai Debt Trap by dredmorbius on Friday February 18, 2022 @02:00PM (#30389709)
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.

Re:The Dubai Debt Trap by titanomachy on Thursday February 24, 2022 @08:57PM (#30462853)
I 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.