DrKain / scrape-youtube

A lightning fast package to scrape YouTube search results
MIT License
112 stars 30 forks source link

Get the ID of a youtube channel #38

Closed ExpErgio closed 3 years ago

ExpErgio commented 3 years ago

Hello. I'm writing here because I don't know exactly where to do it.

I'm trying to find a way to get the ID of a YouTube channel, through your "npm".

I know that your "npm" is used to obtain the information of the videos, streams, and playlists of a youtube channel, but I don't know if it is possible to get this type of information

DrKain commented 3 years ago

By default not possible with this package. Channels often have custom URLs when using the search so that's what's in the response.
A package like ytdl-core can fetch channel IDs (along with other information) when fed a Video URL

DrKain commented 3 years ago

YouTube changed how navigation is managed so this is now possible.

Added in abfa3822459838ffc6b870702b92c9498564f6ac -> video.channel.id