Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: A CLI for Google distributed as a ruby gem (kerrick.github.com)
34 points by Kerrick on May 24, 2012 | hide | past | favorite | 18 comments


This is a fantastic idea! Has some issues that I'll be posting to the github page.

Edit: upon further investigation, the error seems to be with parsing the specific page http://www.test.com (here's the full trace: http://pastebin.com/Lqedy4eN ).


Thanks! Fixed the issue in v1.0.6. One of the libraries I was using, reverse markdown, couldn't handle strings that aren't UTF-8.


This really needs to parse the calculator results as well. That would be so useful.


echo "1+2" | bc

No need to go online for math. Unless that wasn't what you meant at all in which case, what did you mean?


"371633 hours in years" is a Google search I did earlier, because it was quicker than working out the appropriate divisors.

That could be done locally too, but I don't know what tool would do it and if it's installed on my computer by default.


Just for completeness sake:

  units '371633 hours' 'years'


I'm sorry, but didn't Google deprecate the Google Web Search API two years ago?


It is deprecated, but the replacement API requires you to have an API key and charges you for more than 100 searches per day. I'm using the deprecated API until it is discontinued, then I'll release a new version of the gem that will, unfortunately, require you to sign up for an API key.



Cool! Thanks for sharing. How long did it take you to develop?


According to my commit log, 12 hours and 42 minutes.


Doesn't work really well with RVM. I can see the result list, but can't open one because the gem exits with a segmentation fault on nokogiri.


Show "how you present the results" instead of showing the man page on your landing page.


Hmm, good idea. Should I put screenshots up, or a bit of the plaintext output?


So sad it's only for 1.9


doesn't work with ruby 1.8, undefined method 'require_relative'


Nice work!


holllllllly smokes....will have some fun with this!




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

Search: