Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby on Rails plugin for Google Ajax Search API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 rdoc
Octocat-spinner-32 tasks
Octocat-spinner-32 test remove non valid test cases January 31, 2009
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 google_ajax_search.rb
Octocat-spinner-32 init.rb
Octocat-spinner-32 install.rb
Octocat-spinner-32 uninstall.rb
README
GoogleAjaxSearch
================

Wrapper plugin for Google AJAX Search API


Example
=======

GoogleAjaxSearch.web_search(:q => 'test')

`[{"GsearchResultClass"=>"GwebSearch", "title"=>"<b>Test</b>.com Web Based <b>Testing</b> and Certification Software v2.0", "url"=>"http://www.test.com/", "cacheUrl"=>"http://www.google.com/search?q=cache:S9XHtkEncW8J:www.test.com", "content"=>"Easily Author and Administer your own Training Content, <b>Tests</b>, and Certification   Programs Online. <b>Test</b>.com is Web Based Software.", "visibleUrl"=>"www.test.com", "unescapedUrl"=>"http://www.test.com/", "titleNoFormatting"=>"Test.com Web Based Testing and Certification Software v2.0"}, {"GsearchResultClass"=>"GwebSearch", "title"=>"Speakeasy - Speed <b>Test</b>", "url"=>"http://www.speakeasy.net/speedtest/", "cacheUrl"=>"http://www.google.com/search?q=cache:71lCly1h_zMJ:www.speakeasy.net", "content"=>"<b>Test</b> the speed of your internet connection with Speakeasy&#39;s speed <b>test</b>.", "visibleUrl"=>"www.speakeasy.net", "unescapedUrl"=>"http://www.speakeasy.net/speedtest/", "titleNoFormatting"=>"Speakeasy - Speed Test"}, 
...
{"GsearchResultClass"=>"GwebSearch", "title"=>"Adobe - <b>Test</b> Adobe Shockwave and Flash Players", "url"=>"http://www.adobe.com/shockwave/welcome/", "cacheUrl"=>"http://www.google.com/search?q=cache:9eiY90BNAkYJ:www.adobe.com", "content"=>"<b>Test</b> Adobe Shockwave &amp; Flash Players. When you see the animation playing below   the labeled box, <b>...</b> <b>Test</b> your Macromedia Authorware Web Player installation.   <b>...</b>", "visibleUrl"=>"www.adobe.com", "unescapedUrl"=>"http://www.adobe.com/shockwave/welcome/", "titleNoFormatting"=>"Adobe - Test Adobe Shockwave and Flash Players"}]`

`GoogleAjaxSearch.web_search(:q => 'test',:rsz => 'small')
[{"GsearchResultClass"=>"GwebSearch", "title"=>"<b>Test</b>.com Web Based <b>Testing</b> and Certification Software v2.0", "url"=>"http://www.test.com/", "cacheUrl"=>"http://www.google.com/search?q=cache:S9XHtkEncW8J:www.test.com", "content"=>"Easily Author and Administer your own Training Content, <b>Tests</b>, and Certification   Programs Online. <b>Test</b>.com is Web Based Software.", "visibleUrl"=>"www.test.com", "unescapedUrl"=>"http://www.test.com/", "titleNoFormatting"=>"Test.com Web Based Testing and Certification Software v2.0"}, {"GsearchResultClass"=>"GwebSearch", "title"=>"Speakeasy - Speed <b>Test</b>", "url"=>"http://www.speakeasy.net/speedtest/", "cacheUrl"=>"http://www.google.com/search?q=cache:71lCly1h_zMJ:www.speakeasy.net", "content"=>"<b>Test</b> the speed of your internet connection with Speakeasy&#39;s speed <b>test</b>.", "visibleUrl"=>"www.speakeasy.net", "unescapedUrl"=>"http://www.speakeasy.net/speedtest/", "titleNoFormatting"=>"Speakeasy - Speed Test"}, {"GsearchResultClass"=>"GwebSearch", "title"=>"NerdTests.com Fun <b>Tests</b> - Nerd Quiz", "url"=>"http://www.nerdtests.com/ft_nq.php", "cacheUrl"=>"http://www.google.com/search?q=cache:qQvNO0k55XIJ:www.nerdtests.com", "content"=>"Take the Nerd <b>Test</b> to determine your Nerdiness and create your own nerdy, fun   <b>tests</b> here!", "visibleUrl"=>"www.nerdtests.com", "unescapedUrl"=>"http://www.nerdtests.com/ft_nq.php", "titleNoFormatting"=>"NerdTests.com Fun Tests - Nerd Quiz"}, {"GsearchResultClass"=>"GwebSearch", "title"=>"Personality <b>test</b> based on Jung - Myers-Briggs typology", "url"=>"http://www.humanmetrics.com/cgi-win/JTypes1.htm", "cacheUrl"=>"http://www.google.com/search?q=cache:pQDPQucrOesJ:www.humanmetrics.com", "content"=>"Online <b>test</b> based on Jung-Myers-Briggs typology provides your personality   formula, the description of your type, list of occupations, and option to assess   <b>...</b>", "visibleUrl"=>"www.humanmetrics.com", "unescapedUrl"=>"http://www.humanmetrics.com/cgi-win/JTypes1.htm", "titleNoFormatting"=>"Personality test based on Jung - Myers-Briggs typology"}]`





Copyright (c) 2009 Inspire Synergy, released under the MIT license
Something went wrong with that request. Please try again.