Yeah, I forgot to mention that for some websites the markup is generated from javascript by the browser and for most of these a simple fetch request won't return all the needed content.
You can try another approach where you fetch the content with a headless browser instead.
Sanjana Ekanayake
I have tried this approach, but unfortunately, for some URLs, we cannot fetch images with their metadata properties. How do you suggest handling that?