Cocorum: Rumble Live Stream API Python Wrapper

A Python wrapper for the Rumble Live Stream API, with some quality of life additions, such as:

  • Automatic refresh when past the refresh_rate delay when querying any non_static property.
  • All timespamps are parsed to seconds since Epoch, UTC timezone.
  • Chat has new_messages and new_rants properties that return only messages and rants since the last time they were read.

Rumble Terms of Service status

As for cocorum toplevel module, cocorum.static, and most of cocorum.utils, Rumble's Live Stream API help page says that, for now, users have "full reign" on using and implementing the Rumble Live Stream API however they want. However, Rumble's Terms of Service prohibit "any form of automated software to interact with or access the Rumble Site ... without the prior written permission of Rumble." They prohibit "systematic retrieval of data or Content ... to create or compile ... a collection, compilation, library, database or directory." They also prohibit harvesting information about chat and forum users. The network functions in cocorum.utils and the entirety of the rest of the library fit this description. I just discovered this recently, so shortly after publishing this update, I will be requesting said written permission, and will update the library according to their reply.

Even if Rumble says yes...

  • Use this library only on your own account or channel, or on streams you moderate.
  • Do not try to bypass any form of rate limits that Rumble may impose. This library is not intended to be used to harm Rumble or its users.
  • Do not use any of the features for bulk collection of data.
  • If Rumble asks you to stop, do.

Table Of Contents

  1. Tutorials
  2. How-To Guides
  3. Reference
    1. cocorum
    2. cocorum.chatapi
    3. cocorum.servicephp
    4. cocorum.uploadphp
    5. cocorum.scraping
    6. cocorum.jsonhandles
    7. cocorum.basehandles
    8. cocorum.utils
    9. cocorum.static
  4. Explanation

Acknowledgements

Special thanks to GlobalGamer2015 for information on the SSE chat API, and to K4nji for help with the password hashing algorithm. Both helped with other API endpoints as well. Honorable mention to a3r0id's RumblePy, a discontinued module that held the basis for logging in which I used.

I, Wilbur Jaywright, and my brand, Marswide BGL, have no official association with Rumble Corp. beyond that of a normal user and/or channel on the Rumble Video platform. This project is not officially endorsed by Rumble Corp. or its subsidiaries.

S.D.G.