--crawl-link-selector
- CLI
- --crawl-link-selector
Follows the href of elements matching this CSS selector, in addition to a[href]. Repeatable. Requires --crawl-links.
Example
zshot -f winnie-the-pooh.wacz \
--crawl-links \
--crawl-link-selector "link[rel=next]" \
https://zshot-cli.com/example_assets/winnie-the-pooh/{
"url": "https://zshot-cli.com/example_assets/winnie-the-pooh/",
"output_type": "wacz",
"crawl_links": true,
"crawl_link_selector": ["link[rel=next]"]
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/winnie-the-pooh/","output_type":"wacz","crawl_links":true,"crawl_link_selector":["link[rel=next]"]}' \
-o winnie-the-pooh.wacz