For my deployment automation needs, I would like to dynamically and programatically determine the closest Apache Software Foundation mirror since the servers are distributed across geographically distinct locations and it would be ideal to dynamically determine the best mirror without having to hard-code that knowledge somewhere.
The only approach I could think of so far is to scrap the http://www.apache.org/dyn/closer.cgi page for the closest mirror suggested there, but it seems a bit cumbersome and fragile.
Is there a web API endpoint that provides this functionality in a stable and reliable way?
<a>
tag of interest (for example a distinctiveclass
attribute) that makes it easy to identify when scrapping. – Fullbodied