add screenshotter script

This commit is contained in:
2022-10-08 15:00:07 +01:00
parent 77ec931170
commit 182205e3c6
6 changed files with 531 additions and 0 deletions

31
utils/README.md Normal file
View File

@@ -0,0 +1,31 @@
# Readme
This directory contains `screenshot.py` - a script that can be used to take a fullscreen screenshot of the production chains.
## Dependencies
- [Poetry](https://python-poetry.org) for dependency management.
- Chrome installed locally.
Run `quasar dev` from the root of the repo following the instructions in the main README. This starts a development server at <http://localhost:9000>.
## Installation
Install the dependencies with
```
poetry install
```
Activate the poetry shell
```
poetry shell
```
Open `screenshot.py` and change the `URL` variable:
- `http://localhost:9000/` to screenshot the chains from base through Season 2.
- `http://localhost:9000/expansions` to screenshot the chains from Season 3 through Season 4.
Increase the `WAIT_TIME` variable as needed. 60 seconds should be enough time for the page to load all chains but this can vary.