--crawl-max-links
- CLI
- --crawl-max-links
- REST
- crawl_max_links
Caps the total pages a link crawl or sitemap walk fetches, counting the initial page. On reaching the cap the walk stops and exits successfully with what it captured. The cap takes precedence over --crawl-link-depth.
Example
zshot -f winnie-the-pooh.wacz \
--crawl-links \
--crawl-max-links 5 \
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_max_links": 5
}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_max_links":5}' \
-o winnie-the-pooh.wacz