Webpage retrieve from Calc Macro

Hi,
I am using the following code to get a webpage in Libreoffice Calc. It works great!

Set oHTTPobj = CreateObject(“MSXML2.ServerXMLHTTP”)

sURL = “https://www.somewhereorother.com/interestingpage
oHTTPobj.Open “GET”, sURL, False
oHTTPobj.send
sContent = oHTTPobj.responseText

I’m now trying to run the same script in Linux Mint. It failed of course, using a Microsoft object!
What changes are needed to use a Linux object? I need to get the source text of the webpage returned in the Macro.

Thanks Mike

from urllib.request import urlopen


def main():

    with urlopen('https://www.somewhereorother.com/interestingpage') as r:
        html = r.read().decode()

    print(html)

    return