Show HN: A CLI for Google distributed as a ruby gem(kerrick.github.com)
kerrick.github.com
Show HN: A CLI for Google distributed as a ruby gem
http://kerrick.github.com/google/
10 comments
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?
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.
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.
[deleted]
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.
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!
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 ).