RedditorStream

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

Provides submission and comment streams.

__init__(redditor: asyncpraw.models.Redditor)

Initialize a RedditorStream instance.

Parameters:

redditor – The redditor associated with the streams.

comments(**stream_options: str | int | Dict[str, str]) AsyncGenerator[asyncpraw.models.Comment, 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:

redditor = await reddit.redditor("spez")
async for comment in redditor.stream.comments():
    print(comment)
submissions(**stream_options: str | int | Dict[str, str]) AsyncGenerator[asyncpraw.models.Submission, 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:

redditor = await reddit.redditor("spez")
async for submission in redditor.stream.submissions():
    print(submission)