top | item 5013321

Hacker news in your terminal

64 points| Socketubs | 13 years ago |github.com | reply

33 comments

order
[+] kaolinite|13 years ago|reply
Nice work :-) may end up using this. I noticed that you rolled your own hacker news parsing - any reason why you used this over http://www.hnsearch.com/api or similar?

On another note (and sorry for advertising my own project) but it is relevant and some may find it useful - Hacker News for Sublime Text: https://github.com/dotty/HackerNews-SublimeTextPlugin

By the way, you might want to consider putting "Show HN: ..." in the title. Tends to stand out more and people often look for these posts.

[+] Socketubs|13 years ago|reply
Oh yeah it's a nice project too. Thanks for it!

Edit too: Use my own to test BeautifulSoup and for fun.

[+] gglanzani|13 years ago|reply
Is there any reason I can't read the comments in the terminal? It should be relatively easy to implement once you've rolled out your own parser...
[+] Socketubs|13 years ago|reply
Parser don't handle comments at this time but it's could be a nice feature and not so difficult to implement.
[+] joshdotsmith|13 years ago|reply
Glad you built a way for me to be more productive at being less productive.
[+] mmorett|13 years ago|reply
I mean this with all sincerity, but did I understand this correctly? Using Terminal to sift thru HN articles, only to open them up in a web browser via the "c" key or the Enter key? I fail see the point. If you have a browser, you don't need the less usable Terminal version.

I tried thinking about who could be the target audience for something like this and had images of 1960s-era IBMers who worked exclusively with character-based terminals hooked to the mainframes (ignore the lack of browsers in that time period for the moment). But today, barring specialized defense related jobs and the like, everyone has a browser. Hell, many of us have browsers in our pockets via smartphones.

I guess I just don't understand the fetish with 1960s-era technologies in 2013 (up to and including vi/vim vs. more powerful editors). Is it nostalgia?

[+] habitue|13 years ago|reply
I spend most of my day in a terminal. I might use this just to have one less context switch. But I agree that opening the actual article in the browser sort of defeats the point.

As far as vi/vim versus "more powerful" editors... you mean emacs right? Because IDEs aren't necessarily more powerful than vim/emacs, they are just easier to learn.

[+] Surio|13 years ago|reply
Tried installing... Installation bombed with errors:

  running build

  running build_py

  running build_ext

  building 'urwid.str_util' extension

  error: Unable to find vcvarsall.bat
----------------------------------------

I have Python 2.7 and VS2010 Express installed and have already done most of the things SO recommends, such as setting up path variables, etc....

Any other ideas?

[+] Socketubs|13 years ago|reply
Maybe windows guy can help you. I don't have it.
[+] thejsjunky|13 years ago|reply
This is nice, good work.

As a testament to the simplicity of HN's design though, it should be noted HN is fully functional and looks good in elinks etc. In fact I'm posting this very comment from my terminal with elinks. With elinks re-writing scripting it wouldn't be hard to massage the pages a little first to get them looking even better.

[+] icambron|13 years ago|reply
Noob question (I barely ever use Python stuff), but after I install this with pip, how do I actually run it? I'd have expected a hashbanged script on my path but bash can't seem to find one...
[+] onehp|13 years ago|reply
Just run /usr/local/share/python/pyhn
[+] Socketubs|13 years ago|reply
Oh yes, I will add it in README.

You just have to run pyhn command in your favorite terminal.

[+] Devlin_Donnelly|13 years ago|reply
Looks good. Cleaner and more articles on the screen than visiting Hacker News using lynx.
[+] guilloche|13 years ago|reply
I am using w3m for hacker news, it is clean and pretty good.
[+] fox91|13 years ago|reply
Seriously, another one?
[+] 9k9|13 years ago|reply

[deleted]