Access the Infochimps Query API via commandline
- June 19, 2010
A tutorial on how to use chimps to access the Infochimps Query API via commandline.
- Sign up for the API
- When you get your API key, create your chimps dotfile:
sudo nano ~/.chimps - Put this in your dotfile:
:query: :username: your_api_name :key: you_api_key - Install
chimps:sudo gem install chimps. (make sure you have gemcutter as a source otherwise it won’t find the gem:gem sources -a http://gemcutter.org) - Run a query!
% chimps query soc/net/tw/influence screen_name=infochimps
It should return with something like this:
{"replies_out":13,"account_age":602,"statuses":166,"id":15748351,"replies_in":22,"screen_name":"infochimps"}
That’s it!