Forums

Unsplash is not working..(exceptions.ProxyError)

my code

import requests URL ="https://unsplash.com/collections/94855094/natural-beauty" r = requests.get(url = URL)

The above link will return a link like this : https://images.unsplash.com/photo-1613365891364-887bbfc9c723?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=900&ixid=MnwxfDB8MXxyYW5kb218MHw5NDg1NTA5NHx8fHx8fHwxNjMwOTIwNDMy&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1600

and images.unsplash.com is already whitelisted , i dont understand why i am getting this error :/

PLEASE HELP!!

requests.exceptions.ProxyError: HTTPSConnectionPool(host='unsplash.com', port=443): Max retries exceeded with url: /collections/94855094/natural-bea uty (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

images.unsplash.com is whitelisted but unsplash.com is not. We need docs to whitelist it.

Oh okay..here's the link of unsplash.com docs : https://unsplash.com/documentation

Please let me know once you whitelist it, thanks

That page only covers api.unsplash.com, which is also already whitelisted. If there are official API endpoints on unsplash.com without the api. at the start, could you send us a link to the page that specifically documents them?