5 ms·
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 ot
by scottjackson 17y ago
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.
- RyanMcGreal 17y agoFeature 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_on_proxy http://quandyfactory.com/projects/32/stack_trace_for_hnshpy_...
- scottjackson 17y agoJust 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!
- RyanMcGreal 17y ago> 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 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_on_proxy http://quandyfactory.com/projects/32/stack_trace_for_hnshpy_... Hope that helps!
- scottjackson 17y agoThanks a bunch! It's getting pretty late now (just hit 3am), but check back at http://github.com/scottjacksonx/hnsh http://github.com/scottjacksonx/hnsh (or http://scottjackson.org/software/hnsh/ http://scottjackson.org/software/hnsh/) some time late tomorrow and the project should be hosted there, as well as your proxy fix.
- RyanMcGreal 17y agoGreat stuff! I'll follow your github repository.