Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The Accidental Book Review That Made Jack Kerouac Famous. Parent comment
#!/bin/sh set -e curl -s "${1}" | tr -cd '\11\12\15\40-\176' | sed 's/</\n</g' | sed -n '/./{/<p class=.font--body/,/<\/p>/p;}' | /usr/bin/w3m -T text/html
The argument is the URL you want view.
If you're a stickler for well-formed HTML, you can add a pipeline for tidy as well ;-)
tidy -i -w 120 --quiet |
And if you want to retain the title and dateline, use this version:
https://pastebin.com/raw/LcBp6gPB
The argument is the URL you want view.
If you're a stickler for well-formed HTML, you can add a pipeline for tidy as well ;-)
Immediately before your browser of choice.And if you want to retain the title and dateline, use this version:
https://pastebin.com/raw/LcBp6gPB