CommentHelper

class praw.models.listing.mixins.subreddit.CommentHelper(subreddit)

Provide a set of functions to interact with a Subreddit’s comments.

Parameters:

subreddit (models.Subreddit | SubredditListingMixin)

__call__(**generator_kwargs)

Return a ListingGenerator for the Subreddit’s comments.

Additional keyword arguments are passed in the initialization of ListingGenerator.

This method should be used in a way similar to the example below:

for comment in reddit.subreddit("test").comments(limit=25):
    print(comment.author)
Return type:

Iterator[Comment]

Parameters:

generator_kwargs (str | int | dict[str, str])

__init__(subreddit)

Initialize a CommentHelper instance.

Parameters:

subreddit (Subreddit | SubredditListingMixin)

Return type:

None

classmethod parse(data, reddit)

Return an instance of cls from data.

Parameters:
Return type:

PRAWBase