0xDECAFBAD

GoogleToRSS

Revision r1.8 - 19 Nov 2002 - 05:38 GMT - LesOrchard

Introduction

PeterDrayton? made a command line tool in C#? for .NET? called Google2RSS. It uses the GoogleApi to grab the top 10 results for a given query, and produces an RSS feed from the results.

This a reimplementation of that tool in Perl as a simple URL-based (REST?) web service.

News & Status

Thinking of doing this with PHP

-- LesOrchard - 02 May 2002

First working version. ShareAndEnjoy.

-- LesOrchard - 15 Apr 2002

Downloads

Documentation

You may either download the script from my site, or use it directly as a service at http://www.decafbad.com/web-services/url-based/google_rss.cgi.

The script takes the following form parameters:

  • query - Terms with which to make the search
    • Default: "google apis"
  • key - GoogleApi key obtained at service sign-up
    • Default: 0xDECAFBAD key, please don't abuse it
    • You may not trust me, but I'm not gathering keys.
  • title - Title of the RSS feed
    • Default: "Google APIs"
  • link - Link used in the RSS feed
    • Default: "http://www.google.com/apis"
  • description - Description for the RSS feed
    • Default: "Top 10 Google hits for Google APIs"
  • webmaster - Email address for owner of RSS feed
    • Default: "deus_x\@pobox.com"
  • rss_version - RSS format version which should be produced
    • Default: "1.0"
  • cache_age - Minimum seconds between performing the search
    • Default: "3600"

The script returns an RSS document like so (as displayed by RssDisplay):

(Problem parsing this channel. See debug.)

            http://www.decafbad.com/web-services/url-based/google_rss.cgi
            
no element found at line 1, column 0, byte -1 at /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/XML/Parser.pm line 185


            
            

When I grow up, I want to be a computer scientist
Rotating header picture Rotating header picture


Advanced Search

Related Entries

(Disabled, for now.)

Buttons

View items on my Amazon wishlist

Made on a Macintosh Powered by Movable Type <$MTVersion$> Made for Safari Get Firefox You can do better than Microsoft Internet Explorer

Creative Commons License
This work is licensed under a Creative Commons License.