Extract list from 'script type="text/json' in HTML file with Python
I have HTML files containing the following structures: <script type="text/json" placeholder-data="1"> {"name":"john","args":{"id":989,"hobbies":["gardening","boxing","guitar","hunting"],"is_rookie":false}} </script> I am only interested in the list name 'hobbies'. How can I extract it with Python ?