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

Dailymotion - HTTP 403 Forbidden #3229

Closed vgrachev8 closed 10 years ago

vgrachev8 commented 10 years ago

youtube-dl fails to download videos from dailymotion. Tried many links, most of them fail consistently. Some can still be downloaded but fail the next time I run youtube-dl on them.

./youtube-dl --verbose http://www.dailymotion.com/video/x20zt75_chris-harris-130-vs-australia-world-cup-1996_sport [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--verbose', 'http://www.dailymotion.com/video/x20zt75_chris-harris-130-vs-australia-world-cup-1996_sport'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2014.06.26 [debug] Python version 2.7.4 - Linux-3.8.0-35-generic-x86_64-with-Ubuntu-13.04-raring [debug] Proxy map: {} [dailymotion] x20zt75: Downloading webpage [dailymotion] x20zt75: Extracting information [dailymotion] x20zt75: Downloading embed page [debug] Invoking downloader on u'http://www.dailymotion.com/cdn/H264-512x384/video/x20zt75.mp4?auth=1405171294-2562-5cl3f0cr-ac6cf4fd3a495decedffdf156437cea1' ERROR: unable to download video data: HTTP Error 403: Forbidden Traceback (most recent call last): File "./youtube-dl/youtube_dl/YoutubeDL.py", line 1022, in process_info success = dl(filename, info_dict) File "./youtube-dl/youtube_dl/YoutubeDL.py", line 998, in dl return fd.download(name, info) File "./youtube-dl/youtube_dl/downloader/common.py", line 291, in download return self.real_download(filename, info_dict) File "./youtube-dl/youtube_dl/downloader/http.py", line 58, in real_download data = self.ydl.urlopen(request) File "./youtube-dl/youtube_dl/YoutubeDL.py", line 1227, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(_args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(_args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 403: Forbidden

jaimeMF commented 10 years ago

It works fine here, can you watch the videos on a browser?

vgrachev8 commented 10 years ago

Yes, they all play ok in a browser...

jjit commented 10 years ago

works OK also youtube-dl -f standard "http://www.dailymotion.com/video/x20zt75_chris-harris-130-vs-australia-world-cup-1996_sport" [dailymotion] x20zt75: Downloading webpage [dailymotion] x20zt75: Extracting information [dailymotion] x20zt75: Downloading embed page [download] Destination: Chris Harris 130 vs Australia WORLD CUP 1996-x20zt75.mp4 [download] 26.5% of 13.79MiB at 82.29KiB/s ETA 02:06

vgrachev8 commented 10 years ago

Apparently some limitation are imposed by Dailymotion to the IP addresses I tried youtube-dl from. Not a youtube-dl problem, closing.