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