You should try yourself,here some hints.
Convert to Json(becomes a Python dictionary) with build in Json parser in Python.
Then take out what you want.
Output:<script type="text/javascript">window._sharedData = [b]all data inside here in json[/b] </script>
Regex1 |
print (re.findall(r '<script type="text/javascript">window._sharedData = (.*);</script>' , data)[ 0 ]) |
Then take out what you want.