Hacker News in the Terminal
andrewvos.com
andrewvos.com
wait, what? There are some great comments around here.
Right now, I don't see why I should use this tool when I can just use elinks.
elinks -dump news.ycombinator.com | sed -n -e 's/\([0-9]\+\)\.\ \+\(\[.\+\]\)\+\(.*\)/\1: \3/p' | grep -f words.txt -iEDIT: Though I suppose it would be cool if comments worked, too.
I know that the effect can be achieved by running an NNTP server, and using a mail/news gateway, but that's a lot more complex. Most NNTP servers are meant for big multiuser situations, and that makes configuring them complex, and often requires a lot of supporting software. Massive overkill for someone who just wants to read their mail in their newsreader and get a good threaded message view with a good UI.
Especially since many of the participants in this forum are significant participants in the industry.
I was disappointed when you said they used images.
I was more disappointed when I looked at the source and realised it's nested tables.
For shame, HN. For shame.
As far as I know, the current version of HN isn't open source.
curl https://news.ycombinator.com | sed 's|<[^>]*>||g'
edit - for reference, this is being done in an osx 10.7.5 terminal, so ymmvgetting somewhereish, I only have a slight understanding of regex to be honest :)
curl https://news.ycombinator.com | sed 's|<[^>]*>|-|g' | sed -e 's/-------/\'$'\n/g'
... curl https://news.ycombinator.com | sed 's|<[^>]*>|-|g' | sed 's|------------|-|g' | sed -e 's/-------/\'$'\n/g'Oh well.
But, you're right, comments are really where places like HN shine.
https://github.com/slavapestov/factor/blob/master/extra/hack...
IN: scratchpad USE: hacker-news USE: io.streams.256color [ hacker-news. ] with-256color`
Hacker News1. FBI pressures Internet providers to install surveillance software (news.cnet.com) 104 points by ojbyrne 2 hours ago | 32 comments
2. Hard drive hack provides root access, even after reinstall (spritesmods.com) 200 points by pd0wm 5 hours ago | 46 comments
..
EDIT: or also, just use w3m outside of Emacs.
uses the api instead though.