Access Chrome DOM tree with python
Question: Using Chrome DevTools you can see the DOM tree of a page. Is there a way to
access and pull out that tree using python?


Answer: Have you used BeautifulSoup library? This section on the tutorial may answer
your question.
<http://www.crummy.com/software/BeautifulSoup/bs3/documentation.html#The>
Parse Tree

Then, you also need to import Requests library.

    
    
    from BeautifulSoup import BeautifulSoup
    import requests
    url = 'http://www.crummy.com/software/BeautifulSoup/bs3/documentation.html'
    page = requests.get(url)
    soup = BeautifulSoup(page.content)
    print soup 
    

