Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3708

python: get all youtube video urls of a channel

$
0
0

I want to get all video url's of a specific channel. I think json with python or java would be a good choice. I can get the newest video with the following code, but how can I get ALL video links (>500)?

import urllib, jsonauthor = 'Youtube_Username'inp = urllib.urlopen(r'http://gdata.youtube.com/feeds/api/videos?max-results=1&alt=json&orderby=published&author='+ author)resp = json.load(inp)inp.close()first = resp['feed']['entry'][0]print first['title'] # video titleprint first['link'][0]['href'] #url

Viewing all articles
Browse latest Browse all 3708


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>