Skip to content

Instantly share code, notes, and snippets.

@eliask
Created January 30, 2017 10:09
Show Gist options
  • Save eliask/4830d9f521fc412f325a08146ed48f11 to your computer and use it in GitHub Desktop.
Save eliask/4830d9f521fc412f325a08146ed48f11 to your computer and use it in GitHub Desktop.
Download Instagram original quality images from a HAR dump
#!/usr/bin/env bash
har=www.instagram.com.har
time jq -r .log.entries[].request.url "$har" |
grep scontent |
sed 's#[ps][0-9]*x[0-9]*/sh0\.08/##;s#[sp][0-9]*x[0-9]*/##' |
sort -u |
xargs wget --timestamping --trust-server-names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment