Alexa Site Thumbnail Sample in Python

Sample Code & Libraries>Python>Alexa Site Thumbnail Sample in Python
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

This is a python snippet that can be used in various python frameworks to query Alexa Thumbnail Service.


Submitted By: twkelvinn
AWS Products Used: Alexa Web Information Service
Language(s): Python
Created On: June 6, 2007 10:13 AM GMT
Last Updated: September 21, 2008 9:32 PM GMT


Running the Sample

  1. Extract the .zip file into a working directory.
  2. Edit the file to include your Access Key ID and Secret Access Key.
  3. Open up the python interpreter and run the following (or you can include this in some app):
    from ThumbnailUtility import *
    create_thumbnail('', 'Large')
    And for a list:
    from ThumbnailUtility import *
    all_sites = ['', '', '']
    create_thumbnail_list(all_sites, 'Small')

Note: I think most people use Python (for doing web things) in a framework, so this code snippet doesn't include the mechanism of actually displaying the images, it just returns the image location. However, take a look in readme.txt for more examples of actually displaying the images and more advanced usage.

If you need help or run into a stumbling block, don't hesitate contacting me: kelvin [-at-]


good website
this website is gooduse for my work!I'am working in a cleanser company!
happyroya on March 19, 2008 1:24 AM GMT
We are temporarily not accepting new comments.
©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved.