simonw / shot-scraper

A command-line utility for taking automated screenshots of websites
https://shot-scraper.datasette.io
Apache License 2.0
1.67k stars 73 forks source link

Proposal: add option to combine actions #124

Open nekromoff opened 11 months ago

nekromoff commented 11 months ago

I believe it would be handy to both being able to screenshot a page and scrape some other data (e.g. title etc.) at the same time.

Right now it is possible only by executing two commands - one to take a screenshot, second to scrape element content via HTML or JS.

simonw commented 11 months ago

I agree, this is a good idea. Not sure how best to design this though - could be an option to shot-scraper shot ... or an option to shot-scraper javascript ....