Follow Hacker News from the Console
catonmat.net
catonmat.net
lynx "http://news.ycombinator.com"
is almost identical.A little shell script magic gets you auto-refreshing:
#!/bin/sh
while true; do
sh -c "sleep 90; pkill lynx" &
lynx "http://news.ycombinator.com"
done
(there's probably a better way that won't kill all your lynx sessions)Then you can do tricks like these:
>>> from pyhackerstories import get_stories
>>> stories = get_stories()
>>> for story in stories:
... print "%2d. %s (%d)" % (story.position, story.title, story.score)
...
1. Hans Reiser leads police to body, believed to be his wife (23)
2. Follow Hacker News from the Console (18)
3. Scaling on EC2 - WebMynd's experiences (YC Winter '08) (57)
4. Google Protocol Buffers - Open Sourced (19)
5. Balsamiq - Software and Website Mockup App (47)
...
Cheers :) watch -n 90 lynx -dump -nolist http://news.ycombinator.com/I tried "lynx -verbose" but it still displays stuff like [INLINE] and [LINK].
I can't believe it took me this long to realize it's not included.
this could've been done hundreds of different ways (rss, lynx, etc, etc.) but i still like it.
python rocks.