Skip to content

openupthecloud/cloud-youtube-channels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Cloud & Tech YouTube Channels

Basically an export of all the tech channels I follow. Some maybe not 100% cloud, but it should be a good list !

Snippet

Executed on: https://www.youtube.com/feed/channels

const elements = [...document.getElementsByTagName('ytd-channel-renderer')]

const formatted = elements.map((el) => {
    return {
        subscribers: el.querySelector('#metadata').childNodes[0].innerHTML.split(' ')[0],
        videos: el.querySelector('#metadata').childNodes[2].innerHTML.split(' ')[0],
        link: el.getElementsByClassName('channel-link')[0].href,
        name: el.getElementsByClassName('ytd-channel-name')[2].innerHTML
    }
})
    .map(({ subscribers, videos, link, name }) => `* [${name}](${link}) - ${subscribers} subs - ${videos} videos`)
    .join('\n')

console.log(formatted)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published