hnsh is a program I wrote to let you catch up with HN from the shell. You can browse the front page, open up stories and open up comments. There are a couple other nifty features, but they're all listed on the page for you to read, so there's no use re-posting them here.
Hacker News, all keyboard, no mouse. Let me know what you think, HN.
I'll have to head off in a while (it's just past midnight here in Australia), but I'll definitely get back to any comments I miss.
Just to be clear, you're trying to run the program from behind a proxy, yeah?
Thanks for the stack trace -- having that makes a big difference :)
I'm not sure I can make it work with an arbitrary proxy, but I'm pretty sure I could get it to work with a proxy you know the address of. Proxies aren't my strong suit, sorry. We'll see what happens!
> you're trying to run the program from behind a proxy, yeah?
That's right.
> I'm not sure I can make it work with an arbitrary proxy
You could assume that users know their own proxy address (e.g. http://proxy.domain.com:80) and offer a prompt for them to input it. Then you can just save it in the config file.
I added an update to the stack trace page with some code for working with proxies:
Comments
hnsh is a program I wrote to let you catch up with HN from the shell. You can browse the front page, open up stories and open up comments. There are a couple other nifty features, but they're all listed on the page for you to read, so there's no use re-posting them here.
Hacker News, all keyboard, no mouse. Let me know what you think, HN.
I'll have to head off in a while (it's just past midnight here in Australia), but I'll definitely get back to any comments I miss.
Feature request: proxy server support. Right now the script just fails with an urllib2.UrlError. FYI I posted the stack trace here:
http://quandyfactory.com/projects/32/stack_trace_for_hnshpy_...
Just to be clear, you're trying to run the program from behind a proxy, yeah?
Thanks for the stack trace -- having that makes a big difference :)
I'm not sure I can make it work with an arbitrary proxy, but I'm pretty sure I could get it to work with a proxy you know the address of. Proxies aren't my strong suit, sorry. We'll see what happens!
> you're trying to run the program from behind a proxy, yeah?
That's right.
> I'm not sure I can make it work with an arbitrary proxy
You could assume that users know their own proxy address (e.g. http://proxy.domain.com:80) and offer a prompt for them to input it. Then you can just save it in the config file.
I added an update to the stack trace page with some code for working with proxies:
http://quandyfactory.com/projects/32/stack_trace_for_hnshpy_...
Hope that helps!
Thanks a bunch!
It's getting pretty late now (just hit 3am), but check back at http://github.com/scottjacksonx/hnsh (or http://scottjackson.org/software/hnsh/) some time late tomorrow and the project should be hosted there, as well as your proxy fix.
Great stuff! I'll follow your github repository.