Dumping out an accessibility tree

The shot-scraper accessibility command dumps out the Chromium accessibility tree for the provided URL, as JSON:

shot-scraper accessibility https://datasette.io/

Use -o filename.json to write the output to a file instead of displaying it.

Add --javascript SCRIPT to execute custom JavaScript before taking the snapshot.

shot-scraper accessibility --help

Full --help for this command:

Usage: shot-scraper accessibility [OPTIONS] URL

  Dump the Chromium accessibility tree for the specifed page

  Usage:

      shot-scraper accessibility https://datasette.io/

Options:
  -a, --auth FILENAME             Path to JSON authentication context file
  -o, --output FILENAME
  -j, --javascript TEXT           Execute this JS prior to taking the snapshot
  --timeout INTEGER               Wait this many milliseconds before failing
  --log-console                   Write console.log() to stderr
  --fail                          Fail with an error code if a page returns an
                                  HTTP error
  --skip                          Skip pages that return HTTP errors
  --bypass-csp                    Bypass Content-Security-Policy
  --wait-until [commit|domcontentloaded|load|networkidle]
                                  When to consider navigation succeeded, passed
                                  to Playwright's page.goto(). Defaults to
                                  'load'; use 'domcontentloaded' for single page
                                  apps that hold open connections and never fire
                                  the load event.
  --auth-password TEXT            Password for HTTP Basic authentication
  --auth-username TEXT            Username for HTTP Basic authentication
  --help                          Show this message and exit.