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.
- Host: GitHub
- URL: https://github.com/thinkphp/binger
- Owner: thinkphp
- Created: 2013-03-14T20:26:23.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-15T16:55:39.000Z (almost 13 years ago)
- Last Synced: 2025-07-08T13:06:24.318Z (7 months ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/binger
- Size: 121 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```