Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
History.txt
Manifest.txt
README.txt

README.txt

PageGlimpse
    by Tim Parkinson
    (http://code.squidchunks.com/pageglimpse)

== DESCRIPTION:

A simple wrapper to the PageGlimpse website snapshot thumbnail API (http://www.pageglimpse.com/)

== FEATURES/PROBLEMS:

Allows one to queue a request for thumbnail generation, return a JPG thumbnail and save it.

== SYNOPSIS:

  require 'pageglimpse'
  pg = PageGlimpse.new('APIKEY') # API KEY should be inserted here
  req = pg.request("http://doyouhateme.bizarro.org.uk/") # Returns true/false
  thumb = pg.thumbnail("http://doyouhateme.bizarro.org.uk/").save("/tmp/test.jpg") # Grabs and 
  # saves thumbnail. Returns a PageGlimpseThumbnail object.
  thumb.data # The raw JPEG data.

== REQUIREMENTS:

  rubygems
  net/http
  cgi

== INSTALL:

sudo gem install pageglimpse --source http://code.squidchunks.com/gems/

== LICENSE:


Copyright (c) 2008 Tim Parkinson

Creative Commons Attribution license (http://creativecommons.org/licenses/by/3.0/)