There is a ruby wrapper for PageGlimpse available:
http://code.squidchunks.com/pageglimpse/
Unfortunately, the Terms of Use state that "You must not use or launch any automated system, including without limitation, "offline readers", "spiders," etc. to capture data provided by the Service."