reddit.redditors¶
- class asyncpraw.models.Redditors(reddit, _data)¶
Redditors is a Listing class that provides various
Redditorlists.- Parameters:
reddit (asyncpraw.Reddit)
- __init__(reddit, _data)¶
Initialize a
AsyncPRAWBaseinstance.
- new(**generator_kwargs)¶
Return a
ListingGeneratorfor newRedditors.- Return type:
- Returns:
- Parameters:
generator_kwargs (Any)
Additional keyword arguments are passed in the initialization of
ListingGenerator.
- classmethod parse(data, reddit)¶
Return an instance of
clsfromdata.
- await partial_redditors(ids)¶
Get user summary data by redditor IDs.
- Parameters:
- Return type:
- Returns:
A iterator producing
PartialRedditorobjects.
Each ID must be prefixed with
t2_.Invalid IDs are ignored by the server.
- popular(**generator_kwargs)¶
Return a
ListingGeneratorfor popularRedditors.- Return type:
- Returns:
- Parameters:
generator_kwargs (Any)
Additional keyword arguments are passed in the initialization of
ListingGenerator.
- search(query, **generator_kwargs)¶
Return a
ListingGeneratorof Redditors forquery.- Parameters:
- Return type:
- Returns:
Redditors.
Additional keyword arguments are passed in the initialization of
ListingGenerator.
- stream(**stream_options)¶
Yield new Redditors as they are created.
Redditors are yielded oldest first. Up to 100 historical Redditors will initially be returned.
Keyword arguments are passed to
stream_generator().- Return type:
- Returns:
- Parameters:
stream_options (Any)