Capture Snapshot
Type: capture_snapshot
This output type will return an HTML file that captures a static version of the page state. The page will load offline and can be saved to your local machine.
This will:
Load and embed all images on the page.
Embed all CSS files
Currently, JavaScript is disabled, and interactivity might not work as expected, but this feature should help preserve the page state as it was and allow you to view it offline.
Parameters
Usage
The following captures the current section of the page currently visible in the browser.
"actions": [
{
"type": "capture_snapshot"
}
]Example Output
Here's an example that shows an offline snapshot of a site
FAQs
When do I use the capture_snapshot action?
Use it when you need a copy of a page to open and read later for record-keeping, evidence, or to check back on a page after it's changed or gone offline.
What does the capture_snapshot action produce?
It produces a single HTML file with all the images and CSS built in, so the page opens offline on your machine without needing the original site or a network connection.
Does JavaScript work in a Gaffa snapshot?
No. JavaScript is disabled in the saved file, so tabs, carousels, and dropdowns won't respond. The snapshot keeps the page exactly as it was when you captured it.
How do I take a snapshot of a page with content behind a tab?
Add a click for the tab, then a wait for its content to appear, then capture_snapshot. Scripts won't run in the saved file, so open everything you need beforehand.
When should I use capture_screenshot instead of capture_snapshot?
Use a screenshot when you just need to see the page. Use a snapshot when you'll want to read or pull data out of it later, since a snapshot is still HTML.
When should I use print instead of capture_snapshot?
Use print when you need a PDF to share or file. Use capture_snapshot when you need a working copy of how the page looked in the browser.
Last updated