Skip to content

Instantly share code, notes, and snippets.

@szepeviktor
Last active July 13, 2024 14:30
Show Gist options
  • 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
@fcat-ares
Copy link

Thank you!

@denistorresan
Copy link

denistorresan commented Jul 1, 2024

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")' \
  | xargs curl -O

@lakshay135
Copy link

awesome! thankyou so much!

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