I have this url <http://example.com/sample.html>, whose source codes are 

```
<!DOCTYPE html>
<html>
<body>

<p>A script on this page starts this clock:</p>

<p id="demo"></p>

<script>
var myVar = setInterval(myTimer, 1000);

function myTimer() {
    var d = new Date();
    document.getElementById("demo").innerHTML = d.toLocaleTimeString();
}
</script>

</body>

```

I tried to connect to it via python code and here is the snippet:

```
import urllib.request as rq
data = rq.urlopen("http://example.com/sample.html")
data.read()

```

Well, it works perfect but how do I make the python script display on console, time from the url as it changes? Sorry my question might not be clear.
Thanks.