Post#
- class redditeasy.Post(content, title, upvote_ratio, total_awards, score, downvotes, created_at, nsfw, author, post_url, stickied, spoiler, post_flair, author_flair, subreddit_subscribers, comment_count, is_media, subreddit_name, content_type)#
- property author: str#
- Returns
The author of the post
- property author_flair: Optional[str]#
- Returns
The flair of the author. If there isn’t any,
None
- property comment_count: int#
- Returns
The number of comments in the post
- property content: str#
- Returns
The content of the post
- property content_type: ContentType#
- Returns
The type of the post
- property created_at: int#
- Returns
The time when the post was created in epoch
- property downvotes: int#
- Returns
The downvote count of the post
- property is_media: bool#
- Returns
If the posts content is media (e.g. Image, Video)
- property nsfw: bool#
- Returns
If the post is marked as NSFW or not
- property post_flair: Optional[str]#
- Returns
The flair of the post. If there isn’t any,
None
- property post_url: str#
- Returns
The URL of the post
- property score: int#
- Returns
The upvote count of the post
- property spoiler: bool#
- Returns
If the post is marked as spoiler or not
- property stickied: bool#
- Returns
If the post is stickied or not
- property subreddit_name: str#
- Returns
If the name of the subreddit the post is from
- property subreddit_subscribers: int#
- Returns
The members in the subreddit the post is from
- property title: str#
- Returns
The title of the post
- property total_awards: int#
- Returns
The number of total awards of the post
- property upvote_ratio: int#
- Returns
The upvote ratio of the post