Constructor

class Comment(args, video_url)

    Represents a YouTube video comment.

Parameters:

    args dict {"id", "text", "like_count", "is_pinned", "parent", "author", "author_id", "author_url"}
    video_url str The URL of the YouTube video the comment belongs to.

Properties

							id
							str
							
						

    The unique identifier of the comment.

							url
							str
							
						

    The URL which is a link to the video and a parameter for displaying the comment at the top of the comments.

							text
							str
							
						

    The text content of the comment.

							author
							MyTube.Channel
							
						

    The Author of the comment.

							likes
							int
							
						

    The number of likes the comment has received.

							is_pinned
							bool
							
						

    Indicates whether the comment is pinned.

							_parent
							str
							
						

    The full URL to the parent comment (for replies), or "root" if it's a top-level comment.

Methods

							str()
							str
							
						

    Alias for text. Returns the text content of the comment.
    str(comment)