shot-scraper
Automate screenshot generation with shot-scraper
(https://shot-scraper.datasette.io/).
Screenshot
This is an screenshot of https://datasette.io/ taken with shot-scraper
:

Read the Docs configuration file, .readthedocs.yaml
:
1version: 2
2
3build:
4 os: ubuntu-22.04
5 tools:
6 python: "3"
7 apt_packages:
8 - tree
9 - libasound2
10 jobs:
11 pre_build:
12 - shot-scraper install
13 - shot-scraper https://datasette.io/ --height 800 -o docs/_static/datasette.png
14
15sphinx:
16 configuration: docs/conf.py
17
18python:
19 install:
20 - requirements: requirements.txt
Sphinx configuration file used to build this docs (see full file),
1# -*- coding: utf-8 -*-
2
3# Default settings
4project = 'Test Builds'
5extensions = [
6 'sphinx_autorun',
7]
8
9latex_engine = 'xelatex' # allow us to build Unicode chars
10
11
12# Include all your settings here
13html_theme = 'sphinx_rtd_theme'
14html_static_path = ['_static']
15
16
17
18
Python’s requirements.txt
file:
1sphinx-autorun
2shot-scraper
>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow() # UTC
datetime.datetime(2022, 10, 19, 15, 58, 31, 790072)