Skip to content

Instantly share code, notes, and snippets.

@szepeviktor
Last active April 27, 2024 20:57
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save szepeviktor/2a8a3ce8b32e2a67ca416ffd077553c5 to your computer and use it in GitHub Desktop.
Save szepeviktor/2a8a3ce8b32e2a67ca416ffd077553c5 to your computer and use it in GitHub Desktop.
Download Wistia videos - Please do not misuse it!

Download Wistia videos

  1. right-click on the playing video, select Copy link
  2. find Wistia video ID in the copied link e.g. wvideo=tra6gsm6rl
    • alternative: look for e.g. hashedId=tra6gsm6rl in the page source
  3. load http://fast.wistia.net/embed/iframe/ + video ID in your browser
  4. look for "type":"original" in the page source and copy the URL from the next line e.g. "url":"http://embed.wistia.com/deliveries/129720d1762175bcd8e06dcab926ec76ad38ff00.bin"
    • alternative: look for "type":"hd_mp4_video"
  5. download the video from the URL with .mp4 extension instead of .bin
@szepeviktor
Copy link
Author

szepeviktor commented May 28, 2020

wget -qO- "http://fast.wistia.net/embed/iframe/VIDEO-ID" \
  | sed -n -e 's#^\s*W\.iframeInit(\(.\+\), {[^}]*});\s*$#\1#p' \
  | jq -r '."assets"[0]."url" | sub("\\.bin$"; ".mp4")'

@ddepaoli3
Copy link

curl -s "https://fast.wistia.net/embed/iframe/VIDEO_ID?videoFoam=true" /
| grep iframeInit /
| sed -e 's/W.iframeInit(\(.*\), {"deliveryCdn":null});/\1/' /
| jq -r '.assets[0].url' /
| xargs curl -O

@szepeviktor
Copy link
Author

Thank you.

Maybe videoFoam=true causes no change in the HTML output.

@joepietrzak
Copy link

goated

@fcat-ares
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment