Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a Ruby library for Microsoft's Bing search API. This fork aims at updating RBing to work with Bing Search API Data from Windows Azure Data Marketplace.
Ruby
Branch: azure_local
Pull request Compare This branch is 26 commits ahead of koppen:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
script
spec
.gitignore
Gemfile
LICENSE
README.rdoc
Rakefile
TODO
rbing.gemspec

README.rdoc

RBing

A gem that provides an interface to Microsoft's Bing search API.

Usage

Get a Windows Azure Data Marketplace account at datamarket.azure.com/, then setup an Account Key at datamarket.azure.com/account/keys.

Finally, subscribe to Bing Search API - Web Results Only Data at datamarket.azure.com/dataset/bing/searchweb.

require 'rubygems'
require 'rbing'
bing = RBing.new("YOURACCOUNTKEY")

rsp = bing.web("ruby")
puts rsp.results[0].title
=> "Ruby (programming language) - Wikipedia, the free encyclopedia"

Command Line Utility

RBing also has a simple command line interface.

Put your account key into $HOME/.rbing_app_id and you can use rbing:

$> rbing "ruby gems"
[{"Url"=>"http://rubygems.org/",
  "Title"=>"RubyGems Manuals",
  "CacheUrl"=>
   "http://cc.bingj.com/cache.aspx?q=ruby+gems&d=76167709461212&w=39b024d8,55a87382",
  "DisplayUrl"=>"rubygems.org",
  "DateTime"=>Wed Jun 03 11:25:29 UTC 2009,
  "Description"=>
   "The Gem::Specification object controls the data..."},
 ...
]

Dependencies

Resources

RBing:

Bing:

Something went wrong with that request. Please try again.