Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Hacker News CLI, written in Go (github.com/andrewstuart)
98 points by andrewstuart2 on July 31, 2014 | hide | past | favorite | 23 comments


Thanks for goquery! didn't know about it :) https://github.com/PuerkitoBio/goquery


As a warning for any who choose to hack on this, cloudflare gets a bit upset if you query too often, resulting in a period of sadness. It's probably a good sign I should be doing unit testing.


This has the right words to make it to the front page...jk I love it. I made something like this for reddit a while ago; I really enjoy stuff like this. It allows you to stay within the terminal rather than keeping the browser open at all times.


Looks like it's off to a good start! Some colors & lines would go a ways towards making it a bit more usable. I'm looking forward to diving into the code later this evening.


Thanks! I'll try to put in a bit more work on the UI front. I look forward to any more feedback you have.


Indentation would make it easier to read the comments structure, especially if each indent had a line or block down the left margin.


Live links would also be nice, though it defeats somehow the original purpose of shunning the browser.


Neat stuff! You should consider building some binaries and making them available via GitHub's releases feature: being able to ship just binaries is a big plus for Go ;)


Sweet, and done. I had no idea GitHub has that as a feature.


Brings it up to feature parity with SourceForge circa 1999 ;)


but without all the ads.


Btw, I made something that's supposed to make this process easier (and done from the command line, har har): https://github.com/aktau/github-release

Also written in Go, of course...


You may want to point that the binary is for Linux.


Nice! Maybe this can be made to use stdout so I can grep -v raises.*eries and other money talk...


I did something similar a few months back but in NodeJS.

https://github.com/TerryMooreII/HackerNode


A 7,9 MB binary to read HN? Just for the sake of using go? Are you kidding me?

I'll rather stay with my old python one: https://pypi.python.org/pypi/hacker-top/1.0


Do you object to the hundreds of megabytes of your browser's code and dependant libraries too? Or since you brought up Python, why don't you object to the size of python's libraries and binaries?

7.9MB is nothing.


Valid Point. Or not?

It took a bit longer but I wrote a bit about here: https://news.ycombinator.com/item?id=8119322


Try compiling it with gccgo that is able to dynamically link the go standard library (shared among your go projects) instead of building a single big binary, my guess is it should be just a few hundred kb :)


I did not compiled it by my self - I've just grabbed the binary provided by OP.


Does it only work for Linux? I could not go get it under MacOs.


Looks like the goncurses dependency requires some help to run on OSX:

https://code.google.com/p/goncurses/wiki/KnownIssues


Please make a plugin for xiki.org




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: