Skip to content

MitchellAW/CompuGlobal

Repository files navigation

Internet King Popup Banner by BLUEamnesiac

CompuGlobal

Python wrapper for all endpoints of the following undocumented APIs:

Frinkiac, Morbotron, Master Of All Science, and Capital Beat Us.

Note: I'll be keeping the wrapper up to date as more APIs are released.

CompuGlobal allows for both random and searchable screencaps, images and gifs embedded with default or custom captions for the following shows:

The Simpsons, Futurama, Rick and Morty, and West Wing.

Make sure to acquaint yourself with the API using the documentation.

Installation

To install the library, you can just run the following command:

python3 -m pip install -U compuglobal

Basic Usage

import asyncio

import compuglobal


async def main():
    simpsons = compuglobal.aio.Frinkiac()

    # Random
    screencap = await simpsons.get_random_screencap()

    # Search
    screencap = await simpsons.search_for_screencap('nothing at all')

    # Images/Gifs
    image = await simpsons.get_comic_panel_url(screencap)
    gif = await simpsons.get_gif_url(screencap)

if __name__ == '__main__':
    asyncio.run(main())

For documented examples, check here.

What's New

0.3.0 - Breaking changes

These changes are to accommodate the extensive update to the APIs with new features:

  • All synchronous implementations of the package have been removed
  • The async endpoints persist and are now accessible via compuglobal or compuglobal.aio as done previously
  • The Master Of All Science API appears to be unavailable at this point in time and redirects to Frinkiac, I have added a deprecation warning to this API and it will remain unless the API returns
  • The package now requires Python 3.13+
  • Image, comic, and gif generation are all now performed using the API rather than from a Screencap
# This is now async
simpsons = compuglobal.Frinkiac()

# Previous usage
await screencap.get_gif_url()

# New usage
await simpsons.get_gif_url(screencap)

Preview

https://raw.githubusercontent.com/MitchellAW/MitchellAW.github.io/refs/heads/master/images/nothing-at-all.gif

Credits

Creators and contributors of Frinkiac, Morbotron, Master of All Science, and Capital Beat Us:

BLUEamnesiac for the Internet King Popup Banner

Named CompuGlobal as shorthand for CompuGlobalHyperMegaCap, as the family of websites are named.

Packages

 
 
 

Contributors

Languages