Getting ready

The script for this recipe is 04/07_create_image_thumbnail.py.  It uses the Pillow library, so make sure you have installed Pillow into your environment with pip or other package management tools:

pip install pillow

Get Python Web Scraping Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.