Skip to content
Compare
Choose a tag to compare
@simonw simonw released this 27 Sep 02:46
  • Several new features for the YAML configuration used by shot-scraper multi:
    • You can now add a - server: python -m http.server 8003 block to start a server running before screenshots are taken. The PID for this server will be recorded and the server automatically terminated when the command completes, unless you specify the --leave-server option in which case it will be left running, useful for debugging. #156
    • The sh: shell command or python: python code blocks can specify Python or shell commands to run before a screenshot is taken. This means a YAML script can make modifications to the environment in between screenshots, useful for things like progressive tutorials. #155
  • Fixed a bug that occurred if a max-width was accidentally applied to the <div> used for region screenshots. Thanks, Johann Klähn. #143
  • Documented that shot-scraper will quit with an error if a --wait-for expression has not resolved in 30s.