Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't love reading long articles in fixed-width fonts.


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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: