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
ListingGeneratorfor theSubreddit’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)
- __init__(subreddit)¶
Initialize a
CommentHelperinstance.- Parameters:
subreddit (Subreddit | SubredditListingMixin)
- Return type:
None