Scrap Website supported languages and regional url

Hi, I would like to scrap the root url of a website and get all the regional url.

Ex nike.com

result:

 {
      "fr":"nike.com/fr",
      "en":"nike.com/en"
}

Any idea?

@Stefn_Zanbo Hi. Would you elaborate on this idea in a bit more detailed manner?