Provide a set of functions to interact with LiveThreads.
Return a new lazy instance of
This method is intended to be used as:
livethread = reddit.live('ukaeu1ik4sw5')
Parameters: id – A live thread ID, e.g.,
Initialize a PRAWModel instance.
Parameters: reddit – An instance of
create(title, description=None, nsfw=False, resources=None)¶
Create a new LiveThread.
- title – The title of the new LiveThread.
- description – (Optional) The new LiveThread’s description.
- nsfw – (boolean) Indicate whether this thread is not safe for work (default: False).
- resources – (Optional) Markdown formatted information that is useful for the LiveThread.
The new LiveThread object.
Fetch information about each live thread in
Parameters: ids – A list of IDs for a live thread. Returns: A generator that yields
Live threads that cannot be matched will not be generated. Requests will be issued in batches for each 100 IDs.
This method doesn’t support IDs for live updates.
ids = ['3rgnbke2rai6hen7ciytwcxadi', 'sw7bubeycai6hey4ciytwamw3a', 't8jnufucss07'] for thread in reddit.live.info(ids) print(thread.title)
Get the currently featured live thread.
Noneif there is no currently featured live thread.
thread = reddit.live.now() # LiveThread object or None