Skip to content

Instantly share code, notes, and snippets.

@dmlogv
Created June 28, 2020 11:11
Show Gist options
  • Save dmlogv/0dd12e19978a3fe671a3b1ad4c32d4ef to your computer and use it in GitHub Desktop.
Save dmlogv/0dd12e19978a3fe671a3b1ad4c32d4ef to your computer and use it in GitHub Desktop.
Download private embed Vimeo video
// Ctrl+Shift+C to open Chrome Console.
// Choose an IFrame of the Vimeo Video with a comment `player.vimeo.com`
// in the drop-down list `top`.
// Run a script:
var videos = [];
$$('script')[3].textContent.match(/\{[^{]+?mp4[^}]+?\}/g).forEach(
x => { o = JSON.parse(x);
videos.push(o);});
videos.sort((a, b) => a.quality.localeCompare(b.quality)).forEach(
x => { console.log(x.quality, x.url) });
// Choose a needed video quality and call context menu to `Save As...`
// or click to open a video and press Ctrl+S.
@dmlogv
Copy link
Author

dmlogv commented Aug 30, 2022

@VVelda 320p in 2022? :D

Could you send me an example of the wrong parsing?

@Haroon-IQ
Copy link

Dears, How can I change the video resolution

360p https://vod if I need to change to 1080p what code I will use.

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