script = soup.find('script', text=re.compile('root.App.main')).text
data = loads(re.search('root.App.main\\s+=\\s+(\\{.*\\})', script).group(1))
How to understand this raw HTML of Yahoo! Finance when retrieving data using Python?