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.3k stars 10.03k forks source link

Unable to download video from vimeo.com #2527

Closed Phhere closed 10 years ago

Phhere commented 10 years ago

I think that there are videos which are only embedded somewhere and do not have a page on vimeo. And this is one of these.

youtube-dl -v http://player.vimeo.com/video/87821325
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://player.vimeo.com/video/87821325']
[debug] Encodings: locale 'UTF-8', fs 'utf-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.03.07.1
[debug] Python version 3.3.4 - Linux-3.13.5-1-ARCH-x86_64-with-arch
[debug] Proxy map: {}
[vimeo] 87821325: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 403: Forbidden; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 195, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1167, in urlopen
    return self._opener.open(req)
  File "/usr/lib/python3.3/urllib/request.py", line 475, in open
    response = meth(req, response)
  File "/usr/lib/python3.3/urllib/request.py", line 587, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.3/urllib/request.py", line 513, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.3/urllib/request.py", line 447, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.3/urllib/request.py", line 595, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
phihag commented 10 years ago

Can you post the the output you get when you invoke youtube-dl with the URL of the page that embeds this video?

Phhere commented 10 years ago
youtube-dl --verbose http://www.tetongravity.com/films/jeremy-jones-further/watch/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.tetongravity.com/films/jeremy-jones-further/watch/']
[debug] Encodings: locale 'UTF-8', fs 'utf-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.03.07.1
[debug] Python version 3.3.4 - Linux-3.13.5-1-ARCH-x86_64-with-arch
[debug] Proxy map: {}
[generic] watch: Requesting header
WARNING: Falling back on generic information extractor.
[generic] watch: Downloading webpage
[generic] watch: Extracting information
[vimeo] 87821325: Downloading webpage
[vimeo] 87821325: Extracting information
[download] Destination: Watch Jeremy Jones’ Further for Free . . . Right Now!-87821325.mp4

With the URL which embeds the video it works :)

phihag commented 10 years ago

Great. I've added a better error message for this scenario. Thank you for the report!