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

[youtube] youtube.com/feeds/videos.xml is not downloading #19112

Open
marabu88 opened this issue Feb 2, 2019 · 2 comments
Open

[youtube] youtube.com/feeds/videos.xml is not downloading #19112

marabu88 opened this issue Feb 2, 2019 · 2 comments

Comments

@marabu88
Copy link

@marabu88 marabu88 commented Feb 2, 2019

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.01.30.1. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2019.01.30.1

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Youtube allows you to get a list of videos using RSS like this: http://www.youtube.com/feeds/videos.xml?channel_id=UCjzHeG1KWoonmf9d5KBvSiw

Attempting to download this URL leads to an error:

youtube-dl --verbose http://www.youtube.com/feeds/videos.xml?channel_id=UCjzHeG1KWoonmf9d5KBvSiw
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'http://www.youtube.com/feeds/videos.xml?channel_id=UCjzHeG1KWoonmf9d5KBvSiw']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2019.01.30.1
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg N-89794-gc51301db14, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:user] feeds: Downloading channel page
WARNING: Unable to download webpage: HTTP Error 404: Not Found
[youtube:user] feeds: Downloading page #1
ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp36zpl0n4\build\youtube_dl\extractor\common.py", line 605, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp36zpl0n4\build\youtube_dl\YoutubeDL.py", line 2215, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default

If this way of downloading videos is not supported now, then please add it. Is it possible to use some kind of flag to indicate to the program that it is not a link to a YouTube channel, but an RSS?

Please, don't close it without any comments! This is not issue #2491! Since in this issue we are talking about functionality, which YouTube no longer supports. I'm just trying to suggest adding this method of downloading videos that is available now and appeared quite a long time ago.

@ealgase
Copy link
Contributor

@ealgase ealgase commented Feb 3, 2019

This could probably be supported pretty easily, but can't you just use https://www.youtube.com/channel/UCjzHeG1KWoonmf9d5KBvSiw/?

@alexvong1995
Copy link
Contributor

@alexvong1995 alexvong1995 commented Feb 5, 2019

Indeed, it is easy. Assuming you have wget and sed installed, the following shell one-liner should work:

youtube-dl `wget -O - 'https://www.youtube.com/feeds/videos.xml?channel_id=UCjzHeG1KWoonmf9d5KBvSiw' | sed -n 's|.*"\(https://www\.youtube\.com/watch?v=[^"]*\)".*|\1|p'`

Does it work for you? This can of course be turned into a shell script if one wishes.

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
3 participants
You can’t perform that action at this time.