class documentation

Undocumented

Method __init__ Initializes the RedditApi object.
Method check_data Checks if the data collection is available. If the data is not available, it retrieves it.
Method get_data Retrieves data from the specified subreddit.
Method set_documents Sets the documents using the retrieved data.
Instance Variable data Undocumented
Instance Variable max_results Undocumented
Instance Variable posts Undocumented
Instance Variable reddit Undocumented
Instance Variable subreddit Undocumented
def __init__(self, subreddit, max_results=10): (source)

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.

def check_data(self): (source)

Checks if the data collection is available. If the data is not available, it retrieves it.

def get_data(self): (source)

Retrieves data from the specified subreddit. Returns: praw.models.ListingGenerator: A generator object containing the retrieved posts.

def set_documents(self): (source)

Sets the documents using the retrieved data. Returns: list: A list of Document objects.

Undocumented

max_results = (source)

Undocumented

Undocumented

Undocumented

subreddit = (source)

Undocumented