Taking a screenshot of a website with an external service

The previous recipe used selenium, webdriver, and PhantomJS to create the screenshot.  This obviously requires having those packages installed.  If you don't want to install those and still want to make website screenshots, then you can use one of a number of web services that can take screenshots.  In this recipe, we will use the service at www.screenshotapi.io to create a screenshot.

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.