Money and mouth in [im]perfect harmony
attached and http://proweb.net/~matt/p9-4/goofs.c
[I had a nettiquette conundrum here, when does a post get too big to
attach?]
Here's the fs I mentioned the other day.
It started as a look into the Google API which uses SOAP
http://www.google.com/apis/
My eyes started to bleed reading that documentation so I wrote one that
parses the HTML returned from a GET
I've not used it that much but it did save my life already. We lost some
data from the database [don't ask] and I used goofs to retrieve the relevant
pages from google's cache of my site and was able to re-create the data.
I'm pretty sure it does stuff wrong but it seems to work.
to do a search echo the term into the ctl file
you can even add extra options such as site restriction
(you can get quite complicated if you try)
It will break when google changes it's html output
example
% goofs -m /usr/matt/gofs
% echo 'factotum site:www.cs.bell-labs.com' > /usr/matt/gofs/ctl
% ls /usr/matt/gofs/factotum+site:www.cs.bell-labs.com
/usr/matt/gofs/factotum+site:www.cs.bell-labs.com/1
/usr/matt/gofs/factotum+site:www.cs.bell-labs.com/2
..
/usr/matt/gofs/factotum+site:www.cs.bell-labs.com/19 [goofs tries to get 50
results]
% ls '/usr/matt/gofs/factotum+site:www.cs.bell-labs.com/1'
/usr/matt/gofs/factotum+site:www.cs.bell-labs.com/1/cached
/usr/matt/gofs/factotum+site:www.cs.bell-labs.com/1/description
/usr/matt/gofs/factotum+site:www.cs.bell-labs.com/1/folder
/usr/matt/gofs/factotum+site:www.cs.bell-labs.com/1/related
/usr/matt/gofs/factotum+site:www.cs.bell-labs.com/1/summary
/usr/matt/gofs/factotum+site:www.cs.bell-labs.com/1/title
/usr/matt/gofs/factotum+site:www.cs.bell-labs.com/1/url
% cat /usr/matt/gofs/factotum+site:www.cs.bell-labs.com/1/summary
Factotum and SecStore
... A process
called factotum is used to hold credentials like passwords
and public/private keypairs and perform cryptographic operations. ...