{"id":15297456,"url":"https://github.com/mitchellaw/compuglobal","last_synced_at":"2025-08-01T20:33:38.639Z","repository":{"id":57417475,"uuid":"123545299","full_name":"MitchellAW/CompuGlobal","owner":"MitchellAW","description":"Python wrapper for the CGHMC API (Frinkiac, Morbotron, Master Of All Science and more!)","archived":false,"fork":false,"pushed_at":"2022-04-25T03:17:15.000Z","size":122,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T23:16:02.269Z","etag":null,"topics":["api-wrapper","cghmc","cghmc-api","compuglobal","compuglobalhypermegacap","frinkiac","frinkiac-api","master-of-all-science","master-of-all-science-api","morbotron","morbotron-api","python","python-3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MitchellAW.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-02T07:23:40.000Z","updated_at":"2024-09-06T09:39:08.000Z","dependencies_parsed_at":"2022-09-17T21:52:14.199Z","dependency_job_id":null,"html_url":"https://github.com/MitchellAW/CompuGlobal","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MitchellAW%2FCompuGlobal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MitchellAW%2FCompuGlobal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MitchellAW%2FCompuGlobal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MitchellAW%2FCompuGlobal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MitchellAW","download_url":"https://codeload.github.com/MitchellAW/CompuGlobal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794569,"owners_count":21162615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","cghmc","cghmc-api","compuglobal","compuglobalhypermegacap","frinkiac","frinkiac-api","master-of-all-science","master-of-all-science-api","morbotron","morbotron-api","python","python-3"],"created_at":"2024-09-30T19:17:44.318Z","updated_at":"2025-04-13T23:16:12.457Z","avatar_url":"https://github.com/MitchellAW.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://orig00.deviantart.net/43c8/f/2012/137/f/8/internet_king_popup_banner_by_blueamnesiac-d503b3x.png\n        :alt: Internet King Popup Banner by BLUEamnesiac\n\nCompuGlobal\n===========\n\n.. image:: https://img.shields.io/pypi/v/compuglobal.svg\n   :target: https://pypi.python.org/pypi/compuglobal\n.. image:: https://img.shields.io/pypi/pyversions/compuglobal.svg\n   :target: https://pypi.python.org/pypi/compuglobal\n.. image:: https://img.shields.io/badge/PRs-welcome-brightgreen.svg\n   :target: http://makeapullrequest.com\n\nPython wrapper for all endpoints of the following undocumented APIs:\n\n`Frinkiac`_, `Morbotron`_, `Master Of All Science`_, `Capital Beat Us`_\nand `Good God Lemon`_\n\n**Note**: I'll be keeping the wrapper up to date as more APIs are released.\n\n\nCompuGlobal allows for both random and searchable screencaps, images and gifs\nembedded with default or custom captions for the following shows:\n\n*The Simpsons, Futurama, Rick and Morty, West Wing and 30 Rock.*\n\nMake sure to acquaint yourself with the API using the `documentation`_.\n\nInstallation\n------------\nTo install the library, you can just run the following command:\n\n::\n\n    python3 -m pip install -U compuglobal\n\n\nBasic Usage\n------------\n\n.. code:: py\n\n    import compuglobal\n\n    simpsons = compuglobal.Frinkiac()\n\n    # Random\n    screencap = simpsons.get_random_screencap()\n\n    # Search\n    screencap = simpsons.search_for_screencap('nothing at all')\n\n    # Images/Gifs\n    image = screencap.get_meme_url()\n    gif = screencap.get_gif_url()\n\n\nFor documented examples, check `here.`_\n\nAsync Usage\n-----------\n\n.. code:: py\n\n    import asyncio\n\n    import compuglobal\n\n\n    async def main():\n        simpsons = compuglobal.aio.Frinkiac()\n\n        # Random\n        screencap = await simpsons.get_random_screencap()\n\n        # Search\n        screencap = await simpsons.search_for_screencap('nothing at all')\n\n        # Images/Gifs\n        image = screencap.get_meme_url()\n        gif = await screencap.get_gif_url()\n\n    if __name__ == '__main__':\n        loop = asyncio.get_event_loop()\n        loop.run_until_complete(main())\n\nFor documented examples, check `here.`_\n\nWhat's New\n------------\n**0.2.7 - Breaking changes**\n\nThese changes are intended to provide more flexibility in the formatting\nof captions:\n\n- Added `format_caption()` method to CompuGlobalAPI objects. This\n  replaces the formatting logic previously within the `encode_caption()`\n  method. The `encode_caption()` method now only takes a caption parameter.\n- Captions will no longer be formatted and shortened before\n  generation of memes, gifs, and mp4 urls if a caption is given.\n  Behaviour remains the same if no caption is given or if `format_caption()`\n  is used on the caption beforehand.\n\n**0.2.1 - Breaking Changes**\n\n- Added Frame object: `search()`, `get_frames()` and `get_nearby_frames()`\n  now all return a list of Frame objects instead of the json response.\n\n\nPreview\n------------\n.. image:: https://frinkiac.com/gif/S11E10/315560/322560.gif?b64lines=IFdFTEwsIElUIEFMTE9XUyBGT1IKIE1BWElNVU0gTU9CSUxJVFkuCiBGRUVMUyBMSUtFIEknTSBXRUFSSU5HCiBOT1RISU5HIEFUIEFMTC4=\n\nCredits\n------------\n\nCreators and contributors of `Frinkiac`_, `Morbotron`_, `Master of All Science`_, `Good God Lemon`_ and `Capital Beat Us`_:\n\n- `Paul Kehrer`_ \n- `Sean Schulte`_  \n- `Allie Young`_ \n- `Max`_, `Jon Bernhardt`_, `Nick Beatty`_, `Vimp`_, `juz`_, Iconfactory and `Ged Maheux`_\n\n`BLUEamnesiac`_ for the Internet King Popup Banner\n\n*Named CompuGlobal as shorthand for* `CompuGlobalHyperMegaCap`_, *as the family of websites are named.*\n\n.. _documentation: http://compuglobal.readthedocs.io/\n.. _Frinkiac: https://frinkiac.com/\n.. _Morbotron: https://morbotron.com/\n.. _Master Of All Science: https://masterofallscience.com/\n.. _Capital Beat Us: https://capitalbeat.us/\n.. _Good God Lemon: https://goodgodlemon.com/\n.. _here.: https://github.com/MitchellAW/CompuGlobal/tree/master/examples\n.. _Paul Kehrer: https://twitter.com/reaperhulk\n.. _Sean Schulte: https://twitter.com/sirsean\n.. _Allie Young: https://twitter.com/seriousallie\n.. _Max: http://codepen.io/MyXoToD/\n.. _Jon Bernhardt: http://www.dafont.com/akbar.font\n.. _Nick Beatty: https://twitter.com/bumlaser\n.. _Ged Maheux: https://twitter.com/gedeon\n.. _Vimp: http://kornykattos.deviantart.com/\n.. _juz: http://screenpeepers.com/profile/juz\n.. _BLUEamnesiac: https://blueamnesiac.deviantart.com/\n.. _CompuGlobalHyperMegaCap: https://langui.sh/2017/07/30/master-of-all-science-rick-and-morty/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellaw%2Fcompuglobal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitchellaw%2Fcompuglobal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellaw%2Fcompuglobal/lists"}