How to scrape javascript webpage using python standard libs only
Question: I have to scrape a website that uses javascript to display content. I have to
use standard libs only as I will run this script on a server where there is
not any browser. I have found selenium but it requires a browser that in my
case is not possible to install.

Any idea or solution?


Answer: Have a look at Ghost.py <http://jeanphix.me/Ghost.py/>. It doesn't require a
browser.

    
    
    pip install Ghost.py
    
    from ghost import Ghost
    ghost = Ghost()
    page, resources = ghost.open('http://stackoverflow.com/')
    

