Web Screenshots with Python

webscreenshot

The webscreenshot python package takes a list of urls as input and outputs screenshots to a local directory.

Best to be used with PhantomJS as the renderer as Chrome does not support unauthenticated webpages.

Installation

pip install webscreenshot

or clone the directory and run:

pip install r requirements.txt then python webscreenshot.py

selenium

Selenium can use ChromeDriver to take web screenshots. Make sure to install the ChromeDriver version that matches the installed Chrome version.

When specifying the driver path, need to include chromedriver.exe otherwise it will give the following error:

... executable may have wrong permissions

This method works better for non personal wiki style blogs (i.e. formal and secure websites). Running the list of digital gardens through ChromeDriver resulted in a lot of failures.

Related