I have this html code which returns the value of PI
<!DOCTYPE html>
<html>
<body>
<p>This example calls a function which returns the value of PI:</p>
<p id="demo"></p>
<script>
function myFunction() {
return Math.PI;
}
document.getElementById("demo").innerHTML = myFunction();
</script>
</body>
</html>
When I use python requests lib, I get only the source code exactly like above but not the values of Math.PI.
I want to extract only the values of PI and how do I do using python ?