Closed CelebStalker closed 2 years ago
Hello, thanks for opening an issue to report this bug.
This seems like an API error with RedGifs. They stated in their documentation that you would receive a proper URL of their new change (See issue #7 and the official docs).
I'll let RedGifs know about this issue and will get back to you later.
A workaround for this right now is by replacing thumbs2
with thumbs3
in the URL.
from redgifs import API
api = API()
url = api.get_gif('simplefunctionalamericanwirehair').urls.hd
new_url = url.replace('thumbs2', 'thumbs3')
print(new_url)
api.download(new_url, 'vid.mp4')
Keep in mind that this may stop working at anytime.
A workaround for this right now is by replacing
thumbs2
withthumbs3
in the URL.from redgifs import API api = API() url = api.get_gif('simplefunctionalamericanwirehair').urls.hd new_url = url.replace('thumbs2', 'thumbs3') print(new_url) api.download(new_url, 'vid.mp4')
Keep in mind that this may stop working at anytime.
Thank you! I noticed that it possible to download video if use 'search' method and take 'thumbs4' URL with signature, for example from first element of Gifs. Unfortunately, it doesn't work if I get 'thumbs4' URL from page directly (using BeautifulSoup) and then try to use 'download' method.
It probably has to do something with issue #7 Some kind of validation the website has introduced.
Looks like this issue has been fixed. You get the proper URL now and can use the download() method without any problem.
URL given by get_gif(id) function unable to be used with download function.