RedditorStream

class praw.models.reddit.redditor.RedditorStream(redditor)

Provides submission and comment streams.

Parameters:

redditor (models.Redditor)

__init__(redditor)

Initialize a RedditorStream instance.

Parameters:

redditor (Redditor) – The redditor associated with the streams.

Return type:

None

comments(**stream_options)

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 stream_generator().

For example, to retrieve all new comments made by redditor u/spez, try:

for comment in reddit.redditor("spez").stream.comments():
    print(comment)
Return type:

Iterator[Comment]

Parameters:

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

submissions(**stream_options)

Yield new submissions as they become available.

Submissions are yielded oldest first. Up to 100 historical submissions will initially be returned.

Keyword arguments are passed to stream_generator().

For example, to retrieve all new submissions made by redditor u/spez, try:

for submission in reddit.redditor("spez").stream.submissions():
    print(submission)
Return type:

Iterator[Submission]

Parameters:

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