youtube channel urls

How to Copy All The Titles And URLs From YouTube Channel

If you have a youtube channel and you want to get / copy all the videos URLs and titles, you can do it easily by watching this video.

This is very useful if you want to keep a record of all of your videos. You can also use this for adding some videos in video descriptions, as related videos for getting more videos and growing your youtube channel.

Codes Used in this video:

✔ First code:
var scroll = setInterval(function(){ window.scrollBy(0, 1000)}, 1000);

✔ Second code (Updated):
window.clearInterval(scroll); console.clear(); urls = $$('a'); urls.forEach(function(v,i,a){if (v.id=="video-title-link"){console.log('\t'+v.title+'\t'+v.href+'\t')}});

For Youtube Shorts:

window.clearInterval(scroll); 
console.clear(); 
shorts = $$('ytd-rich-item-renderer');
shorts.forEach(function(short, i, shorts) {
  const title = short.querySelector('#video-title').textContent;
  const url = 'https://www.youtube.com' + short.querySelector('#thumbnail').href;
  console.log('\t'+title+'\t'+url+'\t');
});

11 Comments

  1. Hi
    thanks for this valuable info I’m wondering if I can also get the date and duration of the video as well.please if i can add to this code to get that let me know
    thank you

Leave a Reply

Your email address will not be published. Required fields are marked *