simonw / shot-scraper

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

Take screenshots of multiple elements #113

Open clariion opened 1 year ago

clariion commented 1 year ago

Hi Simon,

a website that I want to take screenshots has social posts like Facebook and every post has a class name: "joms-stream joms-embedly--left joms-js--stream joms-js--stream-479143 " Last 6 numbers are always different, it is a post ID.

Is there any way to take multiple snapshots of all posts on the page without entering last 6 digit numbers and to save screenshots separeted?

I tried this, but it doesnt work. hot-scraper https://website.com --selector-all '#joms-stream joms-embedly--left joms-js--stream joms-js--stream-*'

Thank you in advance!