Open betterthanever2 opened 3 weeks ago
That is a good idea.
I have published a new version v0.4.9 with channel_by_url
, which will accept id URLs (/channel/
channel2 = await yt.channel_by_handle('@GoogleDevelopers')
channel2_ = await yt.channel_by_url('https://www.youtube.com/@googledevelopers')
assert channel2.id == channel2_.id
The issue title says "display name", but I am not aware of any URLs that use that? To clarify, the display name by YouTube's terminology is the non-unique name, like the Gmail name field.
It would be nice to have a method on
YouTubeData
class that would take full url to a channel, and would return aChannel
object with data from thesnippet
section of the original object..