Page 1 of 1

Cannot Download Images

Posted: Tue Oct 30, 2018 9:31 pm
by chrisrocks85
Hello,

My python application attempts to download boxart/fanart for games but cannot since the images are hosted at an https: URL.

For testing purposes, I have also tried using download programs and they too fail to download all images.

Example URL as per result of Image by Game ID Request: https://cdn.thegamesdb.net/images/origi ... 2236-1.jpg (works in browser...)

Is there something I am missing so that image download will start working?

Do requests to the image URL need to include an API key, and if so please provide an example on how to properly format the URL.

Thanks in advance for your help.

Re: Cannot Download Images

Posted: Tue Oct 30, 2018 11:23 pm
by Leo_Pride
I'll issue you an API key, Swagger docs should provide the examples you're seeking.

Re: Cannot Download Images

Posted: Tue Oct 30, 2018 11:24 pm
by Leo_Pride
Hello!

You've been granted an API key which you can access through this page.

Please check the Announcements forum on a regular basis to ensure compliance with any changes or updates.

Documentation is available on Swagger here.

Thank you for your interest!
~ Leo

Re: Cannot Download Images

Posted: Wed Oct 31, 2018 11:48 am
by Zer0xFF
you don't need a key, you just need to enable https in your python request.

Re: Cannot Download Images

Posted: Tue Jul 25, 2023 1:12 am
by victorpatrick
When downloading images from an HTTPS URL using Python, you typically don't need an API key unless the server hosting the images explicitly requires authentication for access. The standard approach to downloading images from HTTPS URLs in Python involves using the requests library.
Rainbow Friends: Chapter 2