0

I want to get a list of all videos a Youtube user has uploaded. Say I go to http://www.youtube.com/user/bertrandleroy/videos and click "Load more" until all are loaded. There is a div with id 'video-page-content' that contains links to all the videos. How can I produce a list of links. I'd prefer to just use the dev tools in Chrome or Firebug, if possible.

TEst16
  • 407
  • 1
  • 4
  • 6
  • 1
    [YouTube API v3 - List uploaded videos](http://stackoverflow.com/questions/12930200/youtube-api-v3-list-uploaded-videos) ? – Alex K. Sep 03 '13 at 10:44

1 Answers1

2

Using chrome you could use something like:

var list=document.getElementsByClassName('yt-uix-contextlink');
for (i=0;i<list.length;i++)
{
console.log(list[i].getAttribute("href"));
}

Paste it in the console tab.

This will actually produce 2 links (/watch...) for each video.

flero
  • 70
  • 1
  • 8