google2rss and WWW::Search::Google

koschei on 2002-04-16T15:46:16

As mentioned in a comment in gnat's journal, I'm writing google2rss, in Perl. For the fun of it.

As rjray said, most of the code would be option handling. Yep. So I'm making sure it's a fine example of a program rather than having it look like something thrown together in a few minutes.

Incidentally, I'm making it support all the options of the C# version, just with -- rather than - as the option prefix. =)

I've also made a module (temporarily called WWW::Search::Google for lack of inspiration - I may add ::SOAP on the end) to make it so I can, at the minimum, do:

use WWW::Search::Google::SOAP;
my $results = WWW::Search::Google::SOAP
        ->new()
        ->key('wtstkjfdklsa43kj34kf84+_rn')
        ->query("iain truskett")
        ->results;


I should probably integrate it with Leon?'s WWW::Search::Google module - the main priority of which is to have the common interface of the WWW::Search family. Whereas the major priority for my module is for access to all of Google's API features.

Hmm. I should also make and send a patch or something to the Class::MethodMaker author(s). I like my set accessors to return $self rather than the value. I need an option for that. As it is, my module doesn't use Class::MethodMaker, and instead has a wodge of accessors (made with judicious use of vim macros).

In other news, 0.55 of SOAP::Lite is out now.