Web Page Snapshot

The following recipe demonstrates how to capture two web pages and save them as image files using the chrome_snap plugin.

Static Target Recipe

example.toml

#[log]
#    path = "-"
#    level = "debug"
[[inlets.file]]
    data = [
        '{"url":"https://tine.thingsme.xyz", "dst_path":"./chrome_snap_tine_docs.png"}', 
        '{"url":"https://github.com/OutOfBedlam/tine", "dst_path":"./chrome_snap_tine_github.png"}', 
    ]
    format = "json"
[[flows.chrome_snap]]
    url_field = "url"
    out_field = "snap"
    timeout = "15s"
[[outlets.image]]
    path_field = "dst_path"
    image_fields = ["snap"]
    overwrite = true

Run

Output

chrome_snap_tine_docs.png
chrome_snap_tine_github.png

User Input Recipe

example.toml

Run

Last updated