RedditorStream¶
-
class
asyncpraw.models.reddit.redditor.
RedditorStream
(redditor: asyncpraw.models.reddit.redditor.Redditor)¶ Provides submission and comment streams.
-
__init__
(redditor: asyncpraw.models.reddit.redditor.Redditor)¶ Create a RedditorStream instance.
- Parameters
redditor – The redditor associated with the streams.
-
comments
(**stream_options: Union[str, int, Dict[str, str]]) → AsyncGenerator[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
spez
, try:redditor = await reddit.redditor("spez") async for comment in redditor.stream.comments(): print(comment)
-
submissions
(**stream_options: Union[str, int, Dict[str, str]]) → AsyncGenerator[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
spez
, try:redditor = await reddit.redditor("spez") async for submission in redditor.stream.submissions(): print(submission)
-