Provides submission and comment streams.
Create a SubredditStream instance.
Parameters: subreddit – The subreddit associated with the streams.
Yield new comments as they become available.
Comments are yielded oldest first. Up to 100 historical comments will initially be returned.
Keyword arguments are passed to
For example, to retrieve all new comments made to the
for comment in reddit.subreddit('iama').stream.comments(): print(comment)
Yield new submissions as they become available.
Submissions are yielded oldest first. Up to 100 historical submissions will initially be returned.
For example to retrieve all new submissions made to all of Reddit, try:
for submission in reddit.subreddit('all').stream.submissions(): print(submission)