reddit.redditors¶
- class praw.models.Redditors(reddit, _data)¶
Redditors is a Listing class that provides various
Redditorlists.- Parameters:
reddit (praw.Reddit)
- new(**generator_kwargs)¶
Return a
ListingGeneratorfor newRedditors.- Return type:
- Returns:
- Parameters:
Additional keyword arguments are passed in the initialization of
ListingGenerator.
- classmethod parse(data, reddit)¶
Return an instance of
clsfromdata.
- 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:
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().