Skip to content

Instantly share code, notes, and snippets.

@eggplants
Created February 11, 2025 19:19
Show Gist options
  • Save eggplants/1594233c089ec525b8bd83943631833d to your computer and use it in GitHub Desktop.
Save eggplants/1594233c089ec525b8bd83943631833d to your computer and use it in GitHub Desktop.
Download a purchased video from https://online-ticket.yoshimoto.co.jp with yt-dlp
#!/usr/bin/env bash
# NOTE: FOR PRIVATE USE. DO NOT RE-UPLOAD DOWNLOADED VIDEOS.
# 1. Reveal source of video player's `<iframe id="video_iframe" ...>` to load window.dataForPlayer
# 2. Execute the following JS code in Developer console in the watching page of purchased video:
# const url = new URL(dataForPlayer.clips[0].config);
# url.origin + url.pathname.replace('/config', '');
# // => 'https://player.vimeo.com/video/<id>'
yt-dlp \
--referer 'https://online-ticket.yoshimoto.co.jp' \
'https://player.vimeo.com/video/<id>'
@eggplants
Copy link
Author

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