class documentation
Undocumented
Method | __init__ |
Initializes the RedditApi object. |
Method | check |
Checks if the data collection is available. If the data is not available, it retrieves it. |
Method | get |
Retrieves data from the specified subreddit. |
Method | set |
Sets the documents using the retrieved data. |
Instance Variable | data |
Undocumented |
Instance Variable | max |
Undocumented |
Instance Variable | posts |
Undocumented |
Instance Variable | reddit |
Undocumented |
Instance Variable | subreddit |
Undocumented |
Initializes the RedditApi object. This method is responsible for initializing the RedditApi object after it has been created. Args: subreddit (str): The name of the subreddit to retrieve data from.
Retrieves data from the specified subreddit. Returns: praw.models.ListingGenerator: A generator object containing the retrieved posts.