scrazzz / redgifs

Simple Python API wrapper for the RedGIFs API
https://redgifs.rtfd.io
MIT License
91 stars 12 forks source link

Bad request signature. #32

Closed kellyaka closed 7 months ago

kellyaka commented 7 months ago

Summary

When trying to open hd/sd links in browser they give: Bad request signature error

Reproduction Steps

Expected Result

Expected: A video/mp4 file

Actual Result

Bad request signature.

System Information

Checklist

Additional Information

No response

scrazzz commented 7 months ago

You can't open that link in your browser because RedGifs does some validation based on the URL parameters.

You have 2 options:

  1. You can either use the API.download() method to download the GIF on your device.
  2. Or, you can use the web_url or file_url attribute(s) instead of sd, hd to view the GIF in your browser. See the note here: https://redgifs.readthedocs.io/en/stable/api.html#redgifs.models.URL

Since you want to see the GIF on your browser, you'll have to go with option 2