Releases: simonw/shot-scraper
Releases · simonw/shot-scraper
1.8
- 
shot-scraper javascriptcan now optionally load scripts hosted on GitHub via the newgh:prefix to theshot-scraper javascript -i/--inputoption. #173Scripts can be referenced as
gh:username/repo/path/to/script.jsor, if the GitHub user has created a dedicatedshot-scraper-scriptsrepository and placed scripts in the root of it, usinggh:username/name-of-script.For example, to run this readability.js script against any web page you can use the following:
shot-scraper javascript -i gh:simonw/readability \ https://simonwillison.net/2025/Mar/24/qwen25-vl-32b/
 
1.7
- New options for the 
shot-scraper harcommand:--wait,--wait-forand--javascript- similar to those same options onshot-scraper shot. #171 - Documentation now recommends using 
shot-scraper multi --har-zipfor larger collections of files to avoid a Playwright crash if the.harJSON grows too large. #170 
1.6
- New 
shot-scraper har URLcommand for creating an HTML Archive of a page. #146 shot-scraper multi --harand--har-zipand--har-fileoptions for creating an HTML Archive of multiple pages. #166shot-scraper pdfnow has--wait-forand--timeoutoptions. Thanks, miccou. #161
1.5
- Several new features for the YAML configuration used by shot-scraper multi:
- You can now add a 
- server: python -m http.server 8003block 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-serveroption in which case it will be left running, useful for debugging. #156 - The 
sh: shell commandorpython: python codeblocks 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 
 - You can now add a 
 - Fixed a bug that occurred if a 
max-widthwas accidentally applied to the<div>used for region screenshots. Thanks, Johann Klähn. #143 - Documented that 
shot-scraperwill quit with an error if a--wait-forexpression has not resolved in 30s. 
1.4
- New 
--auth-username x --auth-password yoptions for eachshot-scrapercommand, allowing a username and password to be set for HTTP Basic authentication. #140 shot-scraper URL --interactivemode now respects the-wand-harguments setting the size of the browser viewport. Thanks, mhalle. #128- New 
--scale-factoroption for setting scale factors other than 2 (for retina). Thanks, Niel Thiart. #136 - New 
--browser-argoption for passing extra browser arguments (such as--browser-args "--font-render-hinting=none") through to the underlying browser. Thanks, Niel Thiart. #137 
1.3
- New 
--bypass-cspoption for bypassing any Content Security Policy on the page that prevents executing further JavaScript. Thanks, Brenton Cleeland. #116 - Screenshots taken using 
shot-scraper --interactive $URL- which allows you to interact with the page in a browser window and then hit<enter>to take the screenshot - it no longer reloads the page before taking the shot (which ignored your activity). #125 - Improved accessibility of documentation. Thanks, Paolo Melchiorre. #120
 
1.2
- New 
--omit-backgroundoption to theshotcommand to optionally create transparent PNGs. Thanks, Ben Welsh. #108 - Fixed bug that caused 
shot-scraperto fail to take screenshots on Windows. Thanks, Omer Rosenbaum. #104 - New 
--silentoption for theshot,multi,pdfandhtmlcommands, to disable the default console output. #107 
Full documentation: https://shot-scraper.datasette.io/
1.1.1
1.1
- New 
--log-consoleoption for logging the output of calls toconsole.log()to standard error. #101 - New 
--skipand--failoptions to specify what should happen if an HTTP 4xx or 5xx error is encountered while trying to load the page.--skipwill ignore the error and either exit cleanly or move on to the next screenshot (in the case ofmulti).--failwill cause the tool to return a non-zero exit code, useful for running in CI environments. #102