Subreddit#

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

This class is for getting posts from a subreddit

get_controversial_post(subreddit: str) Post#
Returns

The randomly selected post from the subreddit (controversial)

Param

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

Return type

Post

get_new_post(subreddit: str) Post#
Returns

The randomly selected post from the subreddit (new)

Param

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

Return type

Post

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

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