Watch later feed url is interpreted as a video (was: ytwatchlater extractor doesn't work for youtube watch-later page.) #1012

Closed
opened 2026-02-20 22:03:52 -05:00 by deekerman · 3 comments
Owner

Originally created by @ffernand on GitHub (Aug 22, 2013).

I've tried downloading the list of videos from the watch-later section of youtube. The following command is what I've tried (minus credentials)

youtube-dl --verbose -cit -u [EMAILADDRESS] -p [PASSWORD] ytwatchlater

... producing the following output:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-cit', '-u', '[EMAILADDRESS]', '-p', '[PASSWORD]', 'ytwatchlater']
[debug] youtube-dl version 2013.08.17
[debug] Python version 2.7.3 - Linux-3.5.0-37-generic-x86_64-with-Ubuntu-12.04-precise
[debug] Proxy map: {}
[youtube] Setting language
[youtube] Logging in
[youtube] Confirming age
[youtube] ytwatchlater: Downloading video webpage
[youtube] ytwatchlater: Downloading video info webpage
ERROR: YouTube said: Invalid parameters.
Traceback (most recent call last):
  File "/home/myself/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 312, in extract_info
    ie_result = ie.extract(url)
  File "/home/myself/bin/youtube-dl/youtube_dl/extractor/common.py", line 96, in extract
    return self._real_extract(url)
  File "/home/myself/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 596, in _real_extract
    raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0], expected=True)
ExtractorError: YouTube said: Invalid parameters.

I've also tried using the full url

youtube-dl --verbose -cit -u [EMAILADDRESS] -p [PASSWORD] https://www.youtube.com/feed/watch_later

Which equally doesn't work but produced a different stack-trace...

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-cit', '-u', '[EMAILADDRESS]', '-p', '[PASSWORD]', 'http://www.youtube.com/feed/watch_later']
[debug] youtube-dl version 2013.08.17
[debug] Python version 2.7.3 - Linux-3.5.0-37-generic-x86_64-with-Ubuntu-12.04-precise
[debug] Proxy map: {}
[youtube] Setting language
[youtube] Logging in
[youtube] Confirming age
[youtube] feed: 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. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
  File "/home/myself/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 550, in _real_extract
    video_webpage_bytes = compat_urllib_request.urlopen(request).read()
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/home/myself/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 312, in extract_info
    ie_result = ie.extract(url)
  File "/home/myself/bin/youtube-dl/youtube_dl/extractor/common.py", line 96, in extract
    return self._real_extract(url)
  File "/home/myself/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 552, 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. Make sure you are using the latest version; type  youtube-dl -U  to update.

The following is version info...

$ youtube-dl -U
youtube-dl is up-to-date (2013.08.17)

Only [EMAILADDRESS] AND [PASSWORD] in output were changed to protect the innocent ;)

Originally created by @ffernand on GitHub (Aug 22, 2013). I've tried downloading the list of videos from the watch-later section of youtube. The following command is what I've tried (minus credentials) ``` youtube-dl --verbose -cit -u [EMAILADDRESS] -p [PASSWORD] ytwatchlater ``` ... producing the following output: ``` [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--verbose', '-cit', '-u', '[EMAILADDRESS]', '-p', '[PASSWORD]', 'ytwatchlater'] [debug] youtube-dl version 2013.08.17 [debug] Python version 2.7.3 - Linux-3.5.0-37-generic-x86_64-with-Ubuntu-12.04-precise [debug] Proxy map: {} [youtube] Setting language [youtube] Logging in [youtube] Confirming age [youtube] ytwatchlater: Downloading video webpage [youtube] ytwatchlater: Downloading video info webpage ERROR: YouTube said: Invalid parameters. Traceback (most recent call last): File "/home/myself/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 312, in extract_info ie_result = ie.extract(url) File "/home/myself/bin/youtube-dl/youtube_dl/extractor/common.py", line 96, in extract return self._real_extract(url) File "/home/myself/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 596, in _real_extract raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0], expected=True) ExtractorError: YouTube said: Invalid parameters. ``` I've also tried using the full url ``` youtube-dl --verbose -cit -u [EMAILADDRESS] -p [PASSWORD] https://www.youtube.com/feed/watch_later ``` Which equally doesn't work but produced a different stack-trace... ``` [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--verbose', '-cit', '-u', '[EMAILADDRESS]', '-p', '[PASSWORD]', 'http://www.youtube.com/feed/watch_later'] [debug] youtube-dl version 2013.08.17 [debug] Python version 2.7.3 - Linux-3.5.0-37-generic-x86_64-with-Ubuntu-12.04-precise [debug] Proxy map: {} [youtube] Setting language [youtube] Logging in [youtube] Confirming age [youtube] feed: 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. Make sure you are using the latest version; type youtube-dl -U to update. Traceback (most recent call last): File "/home/myself/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 550, in _real_extract video_webpage_bytes = compat_urllib_request.urlopen(request).read() File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 406, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 519, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 444, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 404: Not Found Traceback (most recent call last): File "/home/myself/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 312, in extract_info ie_result = ie.extract(url) File "/home/myself/bin/youtube-dl/youtube_dl/extractor/common.py", line 96, in extract return self._real_extract(url) File "/home/myself/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 552, 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. Make sure you are using the latest version; type youtube-dl -U to update. ``` The following is version info... ``` $ youtube-dl -U youtube-dl is up-to-date (2013.08.17) ``` Only [EMAILADDRESS] AND [PASSWORD] in output were changed to protect the innocent ;)
deekerman 2026-02-20 22:03:52 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jaimeMF commented on GitHub (Aug 22, 2013):

You have to call it with :ytwatchlater, like youtube-dl :ytwatchlater -u ... -p ..., this is done so that it's not interpreted as a Youtube video id.
The second error is a bug, because it's interpreted as a youtube video url, with id feed.

You can use --netrc and the ~/.netrc file to hide the login information and to save time typing it.

@jaimeMF commented on GitHub (Aug 22, 2013): You have to call it with **:ytwatchlater**, like `youtube-dl :ytwatchlater -u ... -p ...`, this is done so that it's not interpreted as a Youtube video id. The second error is a bug, because it's interpreted as a youtube video url, with id `feed`. You can use `--netrc` and the `~/.netrc` file to hide the login information and to save time typing it.
Author
Owner

@ffernand commented on GitHub (Aug 22, 2013):

Ahh, ok! Feeling sheepish... much appreciated!!!

@ffernand commented on GitHub (Aug 22, 2013): Ahh, ok! Feeling sheepish... much appreciated!!!
Author
Owner

@jaimeMF commented on GitHub (Aug 22, 2013):

We have to fix the https://www.youtube.com/feed/watch_later being interpreted as a video.

@jaimeMF commented on GitHub (Aug 22, 2013): We have to fix the https://www.youtube.com/feed/watch_later being interpreted as a video.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#1012
No description provided.