Skip to content

Instantly share code, notes, and snippets.

@gotson
Last active May 4, 2022 06:33
Show Gist options
  • Save gotson/5441534447fa454b7df7789831d926e2 to your computer and use it in GitHub Desktop.
Save gotson/5441534447fa454b7df7789831d926e2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
temp_file=$(mktemp)
jq -r '.log.entries[] | select(.response.content.mimeType == "image/jpeg") | .request["url"]' $1 > $temp_file
wget --input-file "$temp_file"
rm "$temp_file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment