Skip to content

kvdomingo/pygfycat

Repository files navigation

gpycat

PyPI - Python Version GitHub GitHub release (latest SemVer including pre-releases)

This is a WIP unofficial Python wrapper for the Gfycat web API.

Installation

# Using pip
pip install gpycat

# OR

# Using poetry
poetry add gpycat

Usage

from gpycat import gpycat

# Import your client ID/secret from environment variables

gpycat.auth(client_id=CLIENT_ID, client_secret=CLIENT_SECRET)
item = gpycat.get_gfycat("zestycreepyasiaticlesserfreshwaterclam")

Output:

> GfyItem(title="...", description="...", avgColor="...", content_urls={...}, ...)