https://github.com/thinkphp/googler
A simple gem that provides a client to Google Web Search API
https://github.com/thinkphp/googler
Last synced: 3 months ago
JSON representation
A simple gem that provides a client to Google Web Search API
- Host: GitHub
- URL: https://github.com/thinkphp/googler
- Owner: thinkphp
- Created: 2013-03-18T22:10:26.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-18T22:13:14.000Z (almost 13 years ago)
- Last Synced: 2025-01-21T23:24:40.791Z (about 1 year ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/googler
- Size: 109 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Googler
A simple gem that provides a client to Google Web Search API ( https://developers.google.com/web-search/docs/ )
# Install > gem install googler
# Usage
```
require 'googler'
google = Google.new("49EB4B94127F7C7836C96DEB3F2CD8A6D12BDB71")
results = google.search(q="MooTools")
File.open('output.txt', 'w') { |file| file.write(results) }
```
# Installation manually
```
$ git clone git://github.com/thinkphp/googler.git
$ cd googler
$ gem build googler.gemspec
$ gem install ./googler-0.0.1.gem
$ irb
$ irb(main):001:0> require 'googler'
$ => true
$ irb(main):002:0> Googler.new('your-api-key')
$ => #
$ irb(main):003:0> exit
```