ankeshanand / py-gfycat

A Python client for the Gfycat API.
MIT License
22 stars 9 forks source link

404 Unable to query for the GIF #8

Closed corbindavenport closed 5 years ago

corbindavenport commented 5 years ago

I can no longer query for any Gfycat URLs using the Python API. When I run this code:

client = GfycatClient()
      gfycat_info = client.query_gfy("InsecureIllegalDamselfly")
      # Download the Mp4 version
      gfycat_url = gfycat_info['gfyItem']['mp4Url']

I get this error:

gfycat.error.GfycatClientError: (404) Unable to query for the GIF
AyeRlS commented 5 years ago

Gfycat changed their api, here is a workaround In gfycat/constants.py remplace the line 22 with this : QUERY_ENDPOINT = 'https://api.gfycat.com/v1/gfycats/'

ghost commented 4 years ago

@AyeRlS Did it happen again? I'm getting the same error for everything.