PyImgur
PyImgur copied to clipboard
Commercial Usage now requires RapidAPI Key, not Mashape_Key
I am trying to use this API for commercial usage, so I followed the steps in the readme.md: https://github.com/Damgaard/PyImgur#mashape-api
I then get this error: HTTPSConnectionPool(host='imgur-apiv3.p.mashape.com', port=443): Max retries exceeded with url: /3/image (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb9afb430>: Failed to establish a new connection: [Errno -2] Name or service not known'))
The problem is occurring because imgur switched from using mashape to using rapidapi for commercial usage (see new docs here
The solution is to replace the endpoint with imgur-apiv3.p.rapidapi.com and the mashape_key with the X-RapidAPI-Key.