Skip to content
This repository was archived by the owner on Sep 4, 2026. It is now read-only.

Repository files navigation

Retired (September 2026). This screenshot diff produced too many false positives to be worth maintaining, and is no longer run. The Buildkite step, the lxc-manager bootstrap, the owidbot comment line and the window._OWID_GRAPHERS_LOADING hook it drove the page with were all removed: owid/ops#652, owid/etl#6826, owid/owid-grapher#7181. The screenshots on master are a snapshot of the site as of the last run and are not updated. Everything below describes how it used to work.

This repo is for creating and storing screenshots of a selected number of OWID pages. It uses the shot-scraper tool to take screenshots of the urls listed in config.yaml. Shot-scraper uses a headless browser under the hood via the python package playwright. There is a bit of javascript that has to be done for each screenshot to scroll through the page and give graphers and lazy images time to load.

To add more screenshots, edit config.yaml and add the reference screenshot against to the screenshots directory.

SETUP

run the following steps to install dependencies:

poetry install
poetry run playwright install

then make sure to set the environment variable $BASE_URL which is used in templating the right URL into the yaml file so that the right target is used.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages