Constructor
class Comment(args, video_url)
class Comment(args, video_url)
- Represents a YouTube video comment.
Parameters:
Properties
id
str
id
str
- The unique identifier of the comment.
url
str
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
text
str
- The text content of the comment.
author
MyTube.Channel
author
MyTube.Channel
- The Author of the comment.
likes
int
likes
int
- The number of likes the comment has received.
is_pinned
bool
is_pinned
bool
- Indicates whether the comment is pinned.
_parent
str
_parent
str
- The full URL to the parent comment (for replies), or
"root"
if it's a top-level comment.Methods
str()
str
str()
str
- Alias for text. Returns the text content of the comment.
str(comment)