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');
});
Hi
Hi, how may I help?
hi
Hi, thank you for the update! Do you know if there is a similar code to use for the “Shorts” page as well or for a playlist?
Sure: https://youtu.be/RpPhWBhIMVA
Hello, sorry to bother you but i was wondering what v,i,a in function(v, i, a) stand for
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
thank you so much!!!, please keep up to update this info, greetings from MX…
is it possible also extract the number of comments and views?
thanks
THX for all : ) Im from turkey + (discord ? )
Thanks for the tutorial!
Is there any way to extract upload date too?