damonwonghv / youtube-search-api

Get Youtube Search result without any login or api key
MIT License
86 stars 30 forks source link

Scrape videos of channel id #26

Open AlloryDante opened 1 year ago

AlloryDante commented 1 year ago

Hello, can you add the posibility to scrape the videos urls from the channel? Thank you

damonwonghv commented 1 year ago

It's possible. May I clarify the input of the "https://www.youtube.com/watch?v=cJsM3WZSFQA" and return channel? Currently, you can use GetVideoDetails and input video, the method will return details of this video.

developerTested commented 1 year ago

you just have to parse them because video details are already in json response of getchannelby id response of page.initdata

channelFeaturedContentRenderer , expandedShelfContentsRenderer , gridVideoRenderer, gridPlaylistRenderer , gridChannelRenderer are keys where video details are depend on channel