I need to parse an HTML document that contains javascript code with json object.
Something like this:
<html>
<head>
</head>
<body>
<script type="text/javascript">
myJSONObject = {"name": "steve", "city": "new york"}
</script>
<p>Hello World.</p>
</body>
</html>
How can I extract the myJSONObject value with python?