vlivepy.model.PostModel¶
-
class
vlivepy.model.
PostModel
(post_id: str, session: Optional[vlivepy.session.UserSession] = None)[source]¶ Bases:
vlivepy.model.DataModel
This is the base object for
Post
andOfficialVideoPost
This contains common property of each objectOfficialVideoPost
hasOfficialVideoModel
and doesn’t havebody
compared withPost
Note
This is the base object for other object without independent usage.
- Parameters
post_id (
str
) – Unique id of post to load.session (
UserSession
, optional) – Session for loading data with permission, defaults to None.
-
session
¶ Optional. Session for loading data with permission.
- Type
UserSession
-
property
attachments
¶ Detailed attachments data of post.
- Return type
dict
-
property
attachments_photo
¶ Detailed photo attachments data of post.
- Return type
dict
-
property
attachments_video
¶ Detailed video attachments data of post.
- Return type
dict
Detailed author info of post.
- Return type
dict
Unique id of author.
- Return type
str
Author nickname.
- Return type
str
-
property
board_id
¶ Unique id of parent board
- Return type
int
-
property
channel_code
¶ The code of the channel that contains the post
- Return type
str
-
property
channel_name
¶ The name of the channel that contains the post
- Return type
str
-
property
comment_count
¶ Count of its comment
- Return type
int
-
property
content_type
¶ Type of post.
- Returns
“POST” if the post is normal Post. “VIDEO” if the post is OfficialVideoPost
- Return type
str
-
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
-
getPostCommentsIter
() → Generator[vlivepy.model.Comment, None, None][source]¶ Get Its comments as iterable
- Return type
Generator[Comment, None, None]
- Yields
Comment
-
getPostStarCommentsIter
() → Generator[vlivepy.model.Comment, None, None][source]¶ Get Its star-comments as iterable
- Return type
Generator[Comment, None, None]
- Yields
Comment
-
property
is_comment_enabled
¶ Boolean value for comment-enabled.
- Return type
bool
Boolean value for hidden-from-star.
- Return type
bool
-
property
is_viewer_bookmarked
¶ Boolean value for viewer-bookmarked.
- Return type
bool
-
property
post_id
¶ Unique id of the post.
- Return type
str
-
property
title
¶ Title of the post.
- Return type
str