LiveUpdate¶
-
class
praw.models.LiveUpdate(reddit, thread_id=None, update_id=None, _data=None)¶ An individual
LiveUpdateobject.-
__init__(reddit, thread_id=None, update_id=None, _data=None)¶ Initialize a lazy
LiveUpdateinstance.Either
thread_idandupdate_id, or_datamust be provided.Parameters: - reddit – An instance of
Reddit. - thread_id – A live thread ID, e.g.,
'ukaeu1ik4sw5'. - update_id – A live update ID, e.g.,
'7827987a-c998-11e4-a0b9-22000b6a88d2'.
Usage:
update = LiveUpdate(reddit, 'ukaeu1ik4sw5', '7827987a-c998-11e4-a0b9-22000b6a88d2') update.thread # LiveThread(id='ukaeu1ik4sw5') update.id # '7827987a-c998-11e4-a0b9-22000b6a88d2' update.author # 'umbrae'
- reddit – An instance of
-
contrib¶ Provide an instance of
LiveUpdateContribution.Usage:
thread = reddit.live('ukaeu1ik4sw5') update = thread['7827987a-c998-11e4-a0b9-22000b6a88d2'] update.contrib # LiveUpdateContribution instance
-
fullname¶ Return the object’s fullname.
A fullname is an object’s kind mapping like
t3followed by an underscore and the object’s base36 ID, e.g.,t1_c5s96e0.
-
parse(data, reddit)¶ Return an instance of
clsfromdata.Parameters: - data – The structured data.
- reddit – An instance of
Reddit.
-
thread¶ Return
LiveThreadobject the update object belongs to.
-
Note
This list of attributes is not complete. PRAW dynamically provides the attributes that Reddit returns via the API. Because those attributes are subject to change on Reddit’s end, PRAW makes no effort to document them, other than to instruct you on how to discover what is available. See Determine Available Attributes of an Object for detailed information.