An open API service indexing awesome lists of open source software.

https://github.com/thinkphp/binger

A simple gem that provides an interface to Microsoft's Bing Search API.
https://github.com/thinkphp/binger

Last synced: 7 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Binger

A simple gem that provides a client to Microsoft's Bing Search API v2 using HTTP GET.

# Install > gem install binger

# Usage

```
require 'binger'

bing = Bing.new("49EB4B94127F7C7836C96DEB3F2CD8A6D12BDB71")

results = bing.search(q="MooTools",sources="web")

f = File.open("output.txt",'w')

f.puts results['SearchResponse']["Web"]["Results"]

puts results
```

# Installation manually

```
$ git clone git://github.com/thinkphp/binger.git
$ cd binger
$ gem build binger.gemspec
$ gem install ./binger-0.1.0.gem
$ irb
$ irb(main):001:0> require 'binger'
$ => true
$ irb(main):002:0> Bing.new('your-api-key')
$ => #
$ irb(main):003:0> exit
```