web_programming.reddit

Attributes

valid_terms

Functions

get_subreddit_data(→ dict)

subreddit : Subreddit to query

Module Contents

web_programming.reddit.get_subreddit_data(subreddit: str, limit: int = 1, age: str = 'new', wanted_data: list | None = None) dict

subreddit : Subreddit to query limit : Number of posts to fetch age : [“new”, “top”, “hot”] wanted_data : Get only the required data in the list

web_programming.reddit.valid_terms