Constructor

class Channel(id, url, name, followers)

Parameters:

    id str The unique identifier of the YouTube channel. (from URL)
    url str The URL of the YouTube channel.
    name str The name of the YouTube channel.
    followers int Count of subscribers of the channel.

Properties

							id
							str
							
						

    The unique identifier of the YouTube channel.

							url
							str
							
						

    The URL of the YouTube channel.

							name
							str
							
						

    The name of the YouTube channel.

							followers
							int
							
						

    Count of subscribers of the channel.

Example

import MyTube

yt = MyTube.YouTube("https://www.youtube.com/watch?v=dQw4w9WgXcQ")

print(yt.channel.id)
print(yt.channel.url)
print(yt.channel.name)
print(yt.channel.followers)
>>> UCuAXFkgsw1L7xaCfnd5JJOw
>>> https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw
>>> Rick Astley
>>> 4190000