Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@Streamable.streamable
def comments(self, *args, **kwargs):
r"""
Returns an instance of :class:`~apraw.models.ListingGenerator` mapped to fetch the Redditor's comments.
.. note::
This listing can be streamed doing the following:
.. code-block:: python3
for comment in redditor.comments.stream():
print(comment)
Parameters
----------
kwargs: \*\*Dict
:class:`~apraw.models.ListingGenerator` ``kwargs``.
@Streamable.streamable
def comments(self, *args, **kwargs):
r"""
Returns an instance of :class:`~apraw.models.ListingGenerator` mapped to the comments endpoint.
.. note::
This listing can be streamed doing the following:
.. code-block:: python3
for comment in subreddit.comments.stream():
print(comment)
Parameters
----------
kwargs: \*\*Dict
:class:`~apraw.models.ListingGenerator` ``kwargs``.
@Streamable.streamable
def revisions(self, *args, **kwargs):
r"""
Returns an instance of :class:`~apraw.models.ListingGenerator` mapped to fetch specific wikipage revisions.
.. note::
This listing can be streamed doing the following:
.. code-block:: python3
for comment in subreddit.wiki.page("test").stream():
print(comment)
Parameters
----------
kwargs: \*\*Dict
:class:`~apraw.models.ListingGenerator` ``kwargs``.
@Streamable.streamable
def new(self, *args, **kwargs):
r"""
Returns an instance of :class:`~apraw.models.ListingGenerator` mapped to the new submissions endpoint.
.. note::
This listing can be streamed doing the following:
.. code-block:: python3
for comment in submissions.new.stream():
print(comment)
Parameters
----------
kwargs: \*\*Dict
:class:`~apraw.models.ListingGenerator` ``kwargs``.
@Streamable.streamable
def submissions(self, *args, **kwargs):
r"""
Returns an instance of :class:`~apraw.models.ListingGenerator` mapped to fetch the Redditor's submissions.
.. note::
This listing can be streamed doing the following:
.. code-block:: python3
for comment in redditor.submissions.stream():
print(comment)
Parameters
----------
kwargs: \*\*Dict
:class:`~apraw.models.ListingGenerator` ``kwargs``.
@Streamable.streamable
async def inbox(self, *args, **kwargs) -> ListingGenerator:
return ListingGenerator(self.reddit, API_PATH["message_inbox"], *args, **kwargs)