AsyncSubreddit#

class redditeasy.AsyncSubreddit(client_id=None, client_secret=None, user_agent=None)#

This class is for getting posts from a subreddit in an async way

async get_controversial_post(subreddit: str) Post#
Returns

Info about the randomly selected post from the subreddit (controversial)

Param

subreddit (builtins.str) - The subreddit to get the post from

Return type

Post

async get_new_post(subreddit: str) Post#
Returns

Info about the randomly selected post from the subreddit (new)

Param

subreddit (builtins.str) - The subreddit to get the post from

Return type

Post

async get_post(subreddit: str) Post#
Returns

The randomly selected post from the subreddit (hot)

Param

subreddit (builtins.str) - The subreddit to get the post from

Return type

Post

async get_top_post(subreddit: str) Post#
Returns

The randomly selected post from the subreddit (top)

Param

subreddit (builtins.str) - The subreddit to get the post from

Return type

Post