Simple Bing Search API Client for Ruby.
Add this line to your application's Gemfile:
gem 'bingo'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bingo
$ Bingo.search('your_account_key', 'ruby')
#=>
[
{
"__metadata": {
"uri": "https://api.datamarket.azure.com/Data.ashx/Bing/SearchWeb/v1/Web?Query='ruby'&$skip=0&$top=1",
"type": "WebResult"
},
"ID": "4e17655c-00e0-4ef1-8337-609f11530507",
"Title": "Ruby - Wikipedia, la enciclopedia libre",
"Description": "Ruby es un lenguaje de programación interpretado , reflexivo y orientado a objetos , creado por el programador japonés Yukihiro \"Matz\" Matsumoto , quien comenzó a ...",
"DisplayUrl": "es.wikipedia.org/wiki/Ruby",
"Url": "http://es.wikipedia.org/wiki/Ruby"
},
...
]
Currently Bing Search API – Web Results Only is supported, but is planned to support Bing Search API as well.
Only JSON is available. ATOM(XML) is planned to be supported before v1.0.0.
(TBD)
git clone https://github.com/tomoya55/bingo.git
cd bingo
bundle
bundle exec rake test
- Fork it ( https://github.com/[my-github-username]/bingo/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request