MCPcopy Index your code
hub / github.com/praw-dev/praw / comments

Method comments

praw/models/reddit/redditor.py:426–442  ·  view source on GitHub ↗

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 :func:`.stream_generator`. For example, to retrieve all new comments made by redditor u/spez, t

(self, **stream_options: Any)

Source from the content-addressed store, hash-verified

424 self.redditor = redditor
425
426 def comments(self, **stream_options: Any) -> Iterator[models.Comment]:
427 """Yield new comments as they become available.
428
429 Comments are yielded oldest first. Up to 100 historical comments will initially
430 be returned.
431
432 Keyword arguments are passed to :func:`.stream_generator`.
433
434 For example, to retrieve all new comments made by redditor u/spez, try:
435
436 .. code-block:: python
437
438 for comment in reddit.redditor("spez").stream.comments():
439 print(comment)
440
441 """
442 return stream_generator(self.redditor.comments.new, **stream_options)
443
444 def submissions(self, **stream_options: Any) -> Iterator[models.Submission]:
445 """Yield new submissions as they become available.

Callers

nothing calls this directly

Calls 1

stream_generatorFunction · 0.90

Tested by

no test coverage detected