ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.17k stars 10.02k forks source link

Doesn't download for password-protected Vimeo Videos #29571

Closed DUOLabs333 closed 3 years ago

DUOLabs333 commented 3 years ago

Checklist

Verbose log

youtube-dl https://www.wmm.com/virtual-screening-room/coded-bias-watch-page-nyu-tandon-school-of-engineering-center-for-k12-stem-education/ --video-password codedbias199 --write-sub --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.wmm.com/virtual-screening-room/coded-bias-watch-page-nyu-tandon-school-of-engineering-center-for-k12-stem-education/', '--video-password', 'PRIVATE', '--write-sub', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.9.5 (CPython) - Linux-3.18.137-g72a7a64494e-aarch64-with-libc
[debug] exe versions: ffmpeg 4.4, ffprobe 4.4
[debug] Proxy map: {}
[generic] coded-bias-watch-page-nyu-tandon-school-of-engineering-center-for-k12-stem-education: Requesting header
WARNING: Falling back on generic information extractor.
[generic] coded-bias-watch-page-nyu-tandon-school-of-engineering-center-for-k12-stem-education: Downloading webpage
[generic] coded-bias-watch-page-nyu-tandon-school-of-engineering-center-for-k12-stem-education: Extracting information
[download] Downloading playlist: Coded Bias Watch Page – NYU Tandon School of Engineering, Center for K12 STEM Education
[generic] playlist Coded Bias Watch Page – NYU Tandon School of Engineering, Center for K12 STEM Education: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[vimeo] 505297756: Downloading webpage
[vimeo] 505297756: Verifying the password
ERROR: Unable to download JSON metadata: HTTP Error 405: Method Not Allowed (caused by <HTTPError 405: 'Method Not Allowed'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 634, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 2288, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/data/data/com.termux/files/usr/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/data/data/com.termux/files/usr/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/data/data/com.termux/files/usr/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/data/data/com.termux/files/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/data/data/com.termux/files/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

Description

I'm trying to download a password-protected Vimeo videos from a webpage, but it gives the above error.

DUOLabs333 commented 3 years ago

Ok, I got it: you have to find link for the embedded video, then do --referer then the link to the page.