today | current | recent | random ... categories | search ... who ... syndication

Friday, April 12 2002

Michael Boyle : Can someone please tell me why, or if, I should care about the newly-beta-released Google Web APIs?

Despite the fact that I've spent a good chunk of the last 24 hours writing Perl code to deal with the API, I too have been asking much the same question. Here's one possible answer : you can use the API to write a search interface for your website in a handful of lines...



my $google = Net::Google->new(key=>LOCAL_GOOGLE_KEY);



my $search = $google->search();







# Or replace "michael boyle" with $cgi->param("query")



$search->query(qw(michael boyle));



$search->query("site:aaronland.net");







map { print $_->URL()."\n"; } @{$search->results()}







# Prints :



http://www.aaronland.net/weblog/theory/



http://www.aaronland.net/weblog/archive/936



http://www.aaronland.net/weblog/archive/1951



http://www.aaronland.net/weblog/category/40



see also : Nathan Torkington on commercial web services

refers to

meta

Me : Net::Google.pm 0.2

Finished adding all but one method (restrict) and rigged things so that you can request more than 10 results transparently. Still need to add hooks to deal with boolean searching and magic query strings. I will try and finish those up before I upload the package to the CPAN. see also : WWW::Search::Google.pm Oh yeah, this could easily be written by tweaking the code in rss2blogger to fetch queries instead of RSS feeds.

refers to

meta

This, presumably, is how one learns to become a Libertarian

or atleast a Republican...

meta

The random pseudodictionary.com word of the day is : space phone

Q wireless telephone..
ex. Honey, where's the space phone?

refers to

meta

The dictified dictionary.com word of the day is : apposite

Apposite \Ap"po*site\, a. [L. appositus, p. p. of apponere to set or put to; ad + ponere to put, place.] Very applicable; well adapted; suitable or fit; relevant; pat; -- followed by to; as, this argument is very apposite to the case. -- {Ap"po*site*ly}, adv. -- {Ap"po*site*ness}, n. web1913
apposite adj : being of striking appropriateness and pertinence; "the successful copywriter is a master of apposite and evocative verbal images"; "an apt reply" [syn: {appropriate}, {apt}, {pertinent}] wn

refers to

meta

 
 
Thursday, April 11 2002 ←  → Saturday, April 13 2002