vlivepy.Comment

class vlivepy.Comment(commentId: str, session: Optional[vlivepy.session.UserSession] = None, init_data: Optional[dict] = None)[source]

Bases: vlivepy.model.DataModel

This is the object represents a comment of VLIVE’s post

Parameters
  • commentId (str) – Unique id of comment to load.

  • session (UserSession, optional) – Session for loading data with permission, defaults to None.

  • init_data (dict, optional) – set initial data instead of loading data, defaults to None.

session

Optional. Session for loading data with permission.

Type

UserSession

property author

Detailed author info of post.

Return type

dict

property author_memberId

Unique id of author.

Return type

str

property author_nickname

Author nickname.

Return type

str

property body

Content of comment.

Return type

str

property commentId

Unique id of comment.

Return type

str

property comment_count

Count of its nested comments.

Return type

int

property created_at

Epoch timestamp about created time. The nanosecond units are displayed below the decimal point.

Return type

float

property emotion_count

Count of received emotion.

Return type

int

getNestedCommentsIter()Generator[Comment][source]

Get nested comments as iterable (generator).

Return type

Generator[Comment]

property parent

Detailed information about parent(upper) item.

Return type

dict

parent_info_tuple()tuple[source]

Get parent info as tuple (Parent type, Its(parent) id)

Return type

tuple

property root

Detailed information about root post.

Return type

dict

root_info_tuple()tuple[source]

Get root info as tuple (Root type, Its(root) id)

Return type

tuple

property sticker

Sticker list of comment.

Return type

list

property written_in

User language setting of comment.

Return type

str