--crawl-link-depth
- CLI
- --crawl-link-depth
- REST
- crawl_link_depth
Sets how many hops from the seed a --crawl-links crawl follows. Without it, the crawl follows links at any depth. 1 captures the seed and the pages it links to. With --crawl-max-links, the crawl continues past this depth, shallowest first, until that many pages are fetched. Requires --crawl-links.
Example
zshot -f winnie-the-pooh.wacz \
--crawl-links \
--crawl-link-depth 2 \
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_depth": 2
}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_depth":2}' \
-o winnie-the-pooh.wacz