ListingGenerator¶
- class praw.models.ListingGenerator(reddit, url, limit=100, params=None)¶
Instances of this class generate
RedditBaseinstances.Warning
This class should not be directly utilized. Instead, you will find a number of methods that return instances of the class here.
- __init__(reddit, url, limit=100, params=None)¶
Initialize a
ListingGeneratorinstance.- Parameters:
url (
str) – A URL returning a Reddit listing.limit (
int) – The number of content entries to fetch. IflimitisNone, then fetch as many entries as possible. Most of Reddit’s listings contain a maximum of 1000 items, and are returned 100 at a time. This class will automatically issue all necessary requests (default:100).params (
dict[str,str|int] |None) – A dictionary containing additional query string parameters to send with the request.
- Return type:
None
- __iter__()¶
Permit
ListingGeneratorto operate as an iterator.- Return type: