Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Unable to download video webpage: HTTP Error 404: Not Found #1286

Closed
Houseghost opened this issue Aug 21, 2013 · 8 comments
Closed

ERROR: Unable to download video webpage: HTTP Error 404: Not Found #1286

Houseghost opened this issue Aug 21, 2013 · 8 comments

Comments

@Houseghost
Copy link

@Houseghost Houseghost commented Aug 21, 2013

[1] 535
**-MacBook-Pro:bin **$ [debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?']
[debug] youtube-dl version 2013.06.34.4
[debug] Python version 2.7.2 - Darwin-12.4.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] watch: Downloading video webpage
ERROR: Unable to download video webpage: HTTP Error 404: Not Found; 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.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/extractor/youtube.py", line 416, in _real_extract
video_webpage_bytes = compat_urllib_request.urlopen(request).read()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 400, in open
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 513, in http_response
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 438, in error
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 521, in http_error_default
HTTPError: HTTP Error 404: Not Found
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 312, in extract_info
ie_result = ie.extract(url)
File "./youtube-dl/youtube_dl/extractor/common.py", line 92, in extract
return self._real_extract(url)
File "./youtube-dl/youtube_dl/extractor/youtube.py", line 418, in _real_extract
raise ExtractorError(u'Unable to download video webpage: %s' % compat_str(err))
ExtractorError: Unable to download video webpage: HTTP Error 404: Not Found; 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.

[1]+ Exit 1 ./youtube-dl --verbose https://www.youtube.com/watch?

@moraxy
Copy link

@moraxy moraxy commented Aug 21, 2013

[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?']

missing video id

@Houseghost
Copy link
Author

@Houseghost Houseghost commented Aug 21, 2013

Hm. I did call it with an ID. However the script must cut it off. But why?
After trying again I got a different error which pointed me in the right direction. I didn't pass it within " " ... That was all. And inside the link was a special character. But why did it pass a different error this time?
The link is:
https://www.youtube.com/watch?feature=player_embedded&v=CkxdVMdzkrk#t=3135

@Houseghost Houseghost closed this Aug 21, 2013
@phihag
Copy link
Contributor

@phihag phihag commented Aug 21, 2013

Most likely, you did not quote the URL correctly. If you're still seeing two different behaviors, can you post the exact command lines of each?

@Houseghost
Copy link
Author

@Houseghost Houseghost commented Aug 21, 2013

Both times I wrote:

./youtube-dl https://www.youtube.com/watch?feature=player_embedded&v=CkxdVMdzkrk#t=3135

I got it in a Automator-Script so that the complete link is passed directly to the script. First time the URL got lost
--> 404 error
and after trying it again some time later it told me that quotes are missing.
After quoting it everything worked fine.

@phihag
Copy link
Contributor

@phihag phihag commented Aug 21, 2013

That line is written a little strangely and does almost certainly not do what you want. It gets broken down like this:

Launch youtube-dl in background:
./youtube-dl https://www.youtube.com/watch?feature=player_embedded &

Set a shell variable
v=CkxdVMdzkrk

A comment
#t=3135

@Houseghost
Copy link
Author

@Houseghost Houseghost commented Aug 21, 2013

That is very interesting to read! I wasn't aware of this. So what do you propose how I should call the script and pass a link?
Every link I open within youtube ends with the parameter v=SOME_ID.

@phihag
Copy link
Contributor

@phihag phihag commented Aug 21, 2013

By the way, that breakdown has nothing to do with youtube-dl (it's done before youtube-dl is even started), it's a shell feature. You can simply quote the URL. In a shell script, put it in (double) quotes. Can you post the script you're using?

When you're interactively calling youtube-dl (i.e. typing in commands), simply put the URL in single or double quotes. Alternatively, prepend each ampersand with a backslash.

@xanadu
Copy link
Contributor

@xanadu xanadu commented Aug 21, 2013

Just quote the url

On Wed, Aug 21, 2013 at 11:14 AM, Houseghost notifications@github.comwrote:

That is very interesting to read! I wasn't aware of this. So what do you
propose how I should call the script and pass a link?
Every link I open within youtube ends with the parameter v=SOME_ID.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1286#issuecomment-23037964
.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.