AnnouncementListing

class praw.models.AnnouncementListing(reddit, _data)

Special Listing for handling Announcement lists.

The announcements endpoint wraps results in {"after", "before", "data"} instead of the standard Listing envelope, with each child as a raw dict rather than a {"kind": "ann", "data": {...}} wrapper.

Parameters:
__getitem__(index)

Return the item at position index in the list.

Return type:

Any

Parameters:

index (int)

__init__(reddit, _data)

Initialize a PRAWBase instance.

Parameters:
Return type:

None

__len__()

Return the number of items in the Listing.

Return type:

int

classmethod parse(data, reddit)

Return an instance of cls from data.

Parameters:
Return type:

PRAWBase