项目作者: g0pher98

项目描述 :
Vimeo Player Video Download Script
高级语言:
项目地址: git://github.com/g0pher98/vimeo-video-download-script.git
创建时间: 2021-08-15T17:32:13Z
项目社区:https://github.com/g0pher98/vimeo-video-download-script

开源协议:

下载


vimeo-video-download-script

Vimeo Player Video Download Script

Sites using vemo

  • swapcard

Usage

You can run the script below from the console tab in the developer tools(F12) on a page that only Vimeo Player plays.

  1. var initial_script = top.document.querySelector('body>script').innerHTML;
  2. // regex
  3. var master_link_regex = RegExp('([a-zA-Z0-9-~=:%/\/\.,]+master\.json)');
  4. var master_link = master_link_regex.exec(initial_script)[0];
  5. fetch(master_link).then(r=>r.json()).then(function(resp) {
  6. var video_id = resp.video.slice(-1)[0].id;
  7. window.location.href = master_link.replace(/\/sep\/.*/ig, `/parcel/video/${video_id}.mp4`);
  8. })

When it’s hard to find a page that only Vimeo Player plays

image

  1. Open the page that contains the video.
  2. Open network tab in the Developer tools(F12)
  3. Input master.json into Filter
  4. Refresh page(F5)
  5. Double click for move master.json page
  6. Copy URL and back to page that contains the video.
  7. Run the script below with change master_link
  1. var master_link = "???" // Replaced the URL you just copied!!
  2. fetch(master_link).then(r=>r.json()).then(function(resp) {
  3. var video_id = resp.video.slice(-1)[0].id;
  4. window.location.href = master_link.replace(/\/sep\/.*/ig, `/parcel/video/${video_id}.mp4`);
  5. })