'How to crawl an image url with blocked direct access?

I'd like to receive an image from one site to collect learning materials(Public Service Material). All images are published and available for download from the site, but there is a problem crawling. This is because it is impossible to access directly through the url from which the image was copied. (bad request 400) Does anyone know how to solve it? I'm using Python (first of all, I'm using colab).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source