--archive-ignore-url
- CLI
- --archive-ignore-url
Excludes matching URLs from WARC, WACZ, and SQLite archives. Repeatable. Matching resources still load in the page and remain in HAR output.
| Glob | Excludes |
|---|---|
*/ | Scripts at any path on any host |
/ | Scripts on the start URL’s host |
cdn. | Everything from that host |
Globs match against the query string too, so */*.js misses /app.js?v=2.
Example
zshot -f winnie-the-pooh.wacz \
--archive-ignore-url "*/*.js" \
https://zshot-cli.com/example_assets/winnie-the-pooh/{
"url": "https://zshot-cli.com/example_assets/winnie-the-pooh/",
"output_type": "wacz",
"archive_ignore_url": ["*/*.js"]
}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","archive_ignore_url":["*/*.js"]}' \
-o winnie-the-pooh.wacz