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

download of youtube rss-feeds stopped working #2491

Closed
Zalibart opened this issue Mar 1, 2014 · 3 comments
Closed

download of youtube rss-feeds stopped working #2491

Zalibart opened this issue Mar 1, 2014 · 3 comments

Comments

@Zalibart
Copy link

@Zalibart Zalibart commented Mar 1, 2014

youtube-dl --verbose http://gdata.youtube.com/feeds/api/users/BlueXephos/uploads

gives the following error:

[debug] System config: []                                                                                                                                        
[debug] User config: []                                                                                                                                          
[debug] Command-line args: ['--verbose', 'http://gdata.youtube.com/feeds/api/users/BlueXephos/uploads']                                                          
[debug] Encodings: locale 'cp1252', fs 'mbcs', out 'cp850', pref: 'cp1252'                                                                                       
[debug] youtube-dl version 2014.02.28                                                                                                                            
[debug] Python version 2.7.5 - Windows-7-6.1.7601-SP1                                                                                                            
[debug] Proxy map: {}                                                                                                                                            
[download] Downloading playlist: feeds                                                                                                                           
[youtube:user] feeds: Downloading video ids from 1 to 51                                                                                                         
ERROR: Unable to download 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 f
lag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.                                                 
  File "youtube_dl\extractor\common.pyo", line 191, in _request_webpage                                                                                          
  File "youtube_dl\YoutubeDL.pyo", line 1157, in urlopen                                                                                                         
  File "urllib2.pyo", line 410, in open                                                                                                                          
  File "urllib2.pyo", line 523, in http_response                                                                                                                 
  File "urllib2.pyo", line 448, in error                                                                                                                         
  File "urllib2.pyo", line 382, in _call_chain                                                                                                                   
  File "urllib2.pyo", line 531, in http_error_default                                                                                                            

After fiddling around with the source a bit, I found that youtube-dl tries to download the following url:
https://gdata.youtube.com/feeds/api/users/feeds/uploads?max-results=50&start-index=1&alt=json
which I think should actually be:
https://gdata.youtube.com/feeds/api/users/BlueXephos/uploads?max-results=50&start-index=1&alt=json

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 1, 2014

Why don't you just use youtube-dl 'https://www.youtube.com/user/BlueXephos'?
Also do you know which is the version that worked? I think it wasn't intentional.

@Zalibart
Copy link
Author

@Zalibart Zalibart commented Mar 2, 2014

Okay, I may have been overthinking this. I just pulled those URLs out of Miro, which also stopped working, so I blatantly assumed that Youtube changed their APIs. Originally I used https://developers.google.com/youtube/2.0/reference#Searching_for_videos for building my feed URLs, so I assumed that was the only way. Too many assumptions on my part, sorry.

@Zalibart Zalibart closed this Mar 2, 2014
@clampak
Copy link

@clampak clampak commented Nov 11, 2014

Youtube rss feeds are not working for me.


$ youtube-dl -v 'https://gdata.youtube.com/feeds/api/users/Google/uploads?orderby=viewCount'  
[debug] System config: []  
[debug] User config: []  
[debug] Command-line args: ['-v', 'https://gdata.youtube.com/feeds/api/users/Google/uploads?orderby=viewCount']  
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8  
[debug] youtube-dl version 2014.11.09  
[debug] Python version 2.7.8 - CYGWIN_NT-5.1-1.7.32-0.274-5-3-i686-32bit  
[debug] exe versions: avconv 11, avprobe 11, ffmpeg 2.4.3, ffprobe 2.4.3, rtmpdump 2.4  
[debug] Proxy map: {}  
[download] Downloading playlist: feeds  
[youtube:user] feeds: Downloading video ids from 1 to 51  
ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by HTTPError()); 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/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 232, in _request_webpage  
    return self._downloader.urlopen(url_or_request)  
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1298, 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)  
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
5 participants
You can’t perform that action at this time.