I’m building a tumblelog theme for Hugo and I want to have a Link content type that HTTP GETs the OpenGraph metadata/Twitter card from the given URL when the site is built so that I can display the target page’s title, featured image etc. Is there any way I can make HTTP GET requests to remote URLs when building the site so that this data can be fetched? And just as importantly, how would that data be stored?
To be clear: I know how to generate OpenGraph/Twitter cards for the content on my own site. I want to know how to fetch that metadata from other people’s sites given the URLs at build time.