Skip to content
Back to top
View this page

# RedditorStream

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

  Provides submission and comment streams.

  __init__(redditor: praw.models.Redditor)

    Initialize a `RedditorStream` instance.

    Parameters:

      redditor – The redditor associated with the streams.

  comments(**stream_options: str | int | Dict[str, str]) → Generator[praw.models.Comment, None, None]

    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)

  submissions(**stream_options: str | int | Dict[str, str]) → Generator[praw.models.Submission, None, None]

    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)