Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

owid/site-screenshots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2,671 Commits

Repository files navigation

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

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /