News for hackers. Stuff that matters.
Re:Follow Hacker News from the Console by tlrobinson on Monday July 07, 2008 @10:59PM (#239472)
Cool, but

    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)
Re:Follow Hacker News from the Console by there on Monday July 07, 2008 @11:37PM (#239514)
while true; do clear; lynx -dump -nolist http://news.ycombinator.com/; sleep 90; done
Re:Follow Hacker News from the Console by pkrumins on Monday July 07, 2008 @11:41PM (#239525)
I have not written about it yet, but the hacker-top program contains a python module called 'pyhackerstories.py' which you can import 'get_stories' function from.

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 :)
Re:Follow Hacker News from the Console by fromage on Monday July 07, 2008 @11:49PM (#239530)

    watch -n 90 lynx -dump -nolist http://news.ycombinator.com/
Re:Follow Hacker News from the Console by tlrobinson on Tuesday July 08, 2008 @02:19PM (#240140)
Sure, but you don't get the color :)
Re:Follow Hacker News from the Console by nadim on Tuesday July 08, 2008 @10:46AM (#239891)
In case you're in the same boat as me: http://www.apple.com/downloads/macosx/unix_open_source/lynxt...

I can't believe it took me this long to realize it's not included.

Re:Follow Hacker News from the Console by wheels on Tuesday July 08, 2008 @10:03PM (#240643)
I can't believe it took you this long to discover Fink. :-)
Re:Follow Hacker News from the Console by nadim on Wednesday July 09, 2008 @03:20PM (#241552)
It's not that I haven't heard of it or macports, it's that I haven't really found a need until now.
Re:Follow Hacker News from the Console by tlrobinson on Tuesday July 08, 2008 @02:18PM (#240138)
It's also available in MacPorts and Fink, I believe.
Re:Follow Hacker News from the Console by god on Tuesday July 08, 2008 @07:46AM (#239767)
Is it possible to get rid of all the metadata in Lynx, like image names etc?

I tried "lynx -verbose" but it still displays stuff like [INLINE] and [LINK].

Re:Follow Hacker News from the Console by pg on Monday July 07, 2008 @10:45PM (#239459)
Wow. This looks great. How often does it poll the server?
Re:Follow Hacker News from the Console by pkrumins on Monday July 07, 2008 @10:56PM (#239468)
It polls the server once per 30 seconds (it's the default). The polling interval can be changed via '-i' command line option.
Re:Follow Hacker News from the Console by pg on Monday July 07, 2008 @11:00PM (#239474)
That's a bit fast. And uselessly so, because the frontpage is only regenerated every 90 seconds. How about putting your email in your profile so we can continue this by email?
Re:Follow Hacker News from the Console by pkrumins on Monday July 07, 2008 @11:05PM (#239485)
Done. (it's peter at catonmat dot net)
Re:Follow Hacker News from the Console by michaelneale on Tuesday July 08, 2008 @03:09AM (#239652)
kinda disappointing that in 2008 we still have to poll to get any sort of push on the web. But hey, it works. (yes there is the "comet" style of things to - perhaps pg will provide some API to work like that).
Re:Follow Hacker News from the Console by rmanocha on Tuesday July 08, 2008 @08:24AM (#239790)
Looks great. I have wanted to do something similar (not for HN...) for a while now, but never really got around to learning curses etc. Can you write a post here or on your blog explaining the steps involved or maybe give a link to the curses tutorial you used - or did you just know all this stuff already :).
Re:Follow Hacker News from the Console by pkrumins on Tuesday July 08, 2008 @08:40AM (#239799)
I'll write a post about it in near future :)
Re:Follow Hacker News from the Console by pkrumins on Wednesday July 23, 2008 @09:13PM (#254974)
I'm writing the post now. Check my blog in a few hours :)
Re:Follow Hacker News from the Console by shafqat on Tuesday July 08, 2008 @04:56AM (#239701)
Very nice... Sometimes I forget how fun it is being a nerd. I love this kind of stuff.
Re:Follow Hacker News from the Console by endlessvoid94 on Tuesday July 08, 2008 @09:23AM (#239823)
i like it.

this could've been done hundreds of different ways (rss, lynx, etc, etc.) but i still like it.

python rocks.

Re:Follow Hacker News from the Console by axod on Tuesday July 08, 2008 @05:38AM (#239719)
Nice, but using Putty for the screenshots? ;)