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
- 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