GGaroufalis

Results 4 comments of GGaroufalis

> I was having the same issue but noticed that `curl` was able to download the same urls with no problem. > > Adding the `curl`s default headers to the...

@Gavriik I think this one fixes it ``` def http_download(url: str, download_parameters: dict) -> Optional[bytes]: domain = urlparse(url).hostname if fnmatch.fnmatch(domain, "*.redgifs.com"): headers = download_parameters.get("headers") else: headers = { "user-agent": "curl/8.1.1",...

> > @GGaroufalis thanks! I can confirm that the conditional statement is working as expected, but wouldn't it be better to switch the condition? that way the modified header is...

@GarethFreeman mine is in C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\bdfr yours might differ a bit depending on your python version