6 ms·
Hacker news in your terminal
- ragsagar 14y agoHope you will integrate vim bindings soon!
- Socketubs 14y agohttps://github.com/socketubs/pyhn/commit/3d1e4d0adb07874b2210fc22e068106aa8ca4735 https://github.com/socketubs/pyhn/commit/3d1e4d0adb07874b221... Done!
- deloschang 14y agoVim bindings are inverted for me, unfortunately. For instance, 'k' scrolls down instead of up. Or am I missing something? I would have expected it to work like Vimium.
- joshdotsmith 14y agoGlad you built a way for me to be more productive at being less productive.
- kaolinite 14y agoNice 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 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 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 14y agoOh yeah it's a nice project too. Thanks for it! Edit too: Use my own to test BeautifulSoup and for fun.
- bdcravens 14y agoInteresting to post this 4 days after another terminal version of Hacker News http://news.ycombinator.com/item?id=4992951 http://news.ycombinator.com/item?id=4992951 Maybe should have put "another" in the title? :-)
- Socketubs 14y agoVery similar but easier to install (I think). The hacker_term don't work for me, so I do my own :)
- gglanzani 14y agoIs 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 14y agoParser don't handle comments at this time but it's could be a nice feature and not so difficult to implement.
- deloschang 14y agoGreat project - one bug is that when you scroll above the top (#1), index goes out of range. Should be easy to fix.
- Socketubs 14y agoThis bug is fixed now. https://github.com/socketubs/pyhn/commit/60a95a842a4e60bd49af47b9139a6fa60980acbf https://github.com/socketubs/pyhn/commit/60a95a842a4e60bd49a...
- icambron 14y agoNoob 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...
- thejsjunky 14y agoThis 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.
- 9k9 14y agoIt sounds nice but hacker news is way too distracting as it is, a sneaky look at hacker news really slow down work.
- guilloche 14y agoI am using w3m for hacker news, it is clean and pretty good.
- Devlin_Donnelly 14y agoLooks good. Cleaner and more articles on the screen than visiting Hacker News using lynx.
- lscott3 14y agoPretty sweet!
- mmorett 14y agoI 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 14y agoI 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.
- mmorett 14y ago"you mean emacs right?" Lol. I'm not taking that bait. :-) FWIW, I had never tried emacs before and decided last week, ironically, to try it for the first time. I fired it up, poked around, tried to do something useful and then wanted to quit. I couldn't find a way to quit the app. As best as I can remember, I don't remember seeing an obvious way to exit so I closed the entire Terminal window. lol But that same exercise on TextMate was not even close. I was immediately productive in TextMate, having never used it before, and was able to get things done. Even better, I was able to exit "properly" without killing the program. TextMate required no memorization of any kind. But it also doesn't make one out to be a genius for simply being able to use it. Those archaic command-line editors do. My gf has to use nano because she can't navigate using vi. I use vi (barely), and I can't navigate it either. lol. vi, for me, is like a one night stand...get in and out as fast as possible. I hate using it. But many people swear by it...in 2013. Because ":wq" is so obvious.
- fox91 14y agoSeriously, another one?
- Surio 14y agoTried 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 14y agoMaybe windows guy can help you. I don't have it.