Google's Könguló plug-in "crawls websites you specify and makes them searchable via GDS". Its source is available (in Python...). It's a good way to get started writing Google Desktop plug-ins, according to this OnLamp article.
Comment on Re: Write Google Desktop Search plug-ins in Perl.