--video-selector
- CLI
- --video-selector
- REST
- video_selector
Records only the element matching this CSS selector. The element’s box is measured once when recording starts and crops every frame.
A selector that is empty or matches nothing is an error. It applies to WebM, MP4 and MKV output, and is rejected with any other output type or --full-page.
Example
zshot -f tiger.webm --video-selector ".stage svg" https://zshot-cli.com/example_assets/tiger/{
"url": "https://zshot-cli.com/example_assets/tiger/",
"output_type": "webm",
"video_selector": ".stage svg"
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/tiger/","output_type":"webm","video_selector":".stage svg"}' \
-o tiger.webm