mobcrush package¶
Submodules¶
mobcrush.datatypes module¶
mobcrush.datatypes¶
Datatypes for the Mobcrush API.
-
class
mobcrush.datatypes.Broadcast(data)¶ Bases:
objectClass for mobcrush broadcasts
Parameters: data (dict) – Data of the broadcast -
enddate¶
-
formats¶
-
game¶
-
hasCustomThumbnail¶
-
height¶
-
id¶
-
likes¶
-
live¶
-
mature¶
-
region¶
-
snapshot¶
-
startdate¶
-
title¶
-
url¶
-
user¶
-
viewers¶
-
views¶
-
width¶
-
-
class
mobcrush.datatypes.Game(data)¶ Bases:
objectClass for mobcrush games
Parameters: data (dict) – Data of the game -
icon¶
-
id¶
-
name¶
-
urls¶
-
-
class
mobcrush.datatypes.Streamer(data)¶ Bases:
objectClass for streamers
Parameters: data (dict) – Data of the streamer -
broadcastcount¶
-
chatroomid¶
-
description¶
-
donations¶
-
featured¶
-
followercount¶
-
followingcount¶
-
id¶
-
islive¶
-
lastbroadcast¶
-
name¶
-
partner¶
-
poster¶
-
profilepic¶
-
profilepic_s¶
-
raw¶
-
subtitle¶
-
url¶
-
mobcrush.main module¶
mobcrush.main¶
Main file for the Mobcrush API
-
class
mobcrush.main.User(username, password)¶ Bases:
objectUser class of the mobcrush api.
Parameters: - username (str) – Username of the user.
- password (str) – Password of the user.
-
login()¶ Logs the user into the mobcrush API
-
say(chatroomid, msg)¶ Sends message to the specified chatroom id.
Param: chatroomid: ID of the Mobcrush chatroom to send to Parameters: msg (str) – Message to send Returns: True if completed :rtype bool
-
mobcrush.main.cache(*args, **kwargs)¶ Caches the response using requests-cache – Should only be called once
-
mobcrush.main.streamer(streamer)¶ Fetches streamer from api from username. Usernames must match the url of the streamer
Parameters: streamer – Streamer’s username to query. Returns: mobcrush.Streamer. Return type: class