My current answer is: maybe ghost.py works. But only after a lot of prerequisites that I found difficult to install and configure. My solution was to follow the advice of Pyklar to use PhantomJS through the selenium library here: https://stackoverflow.com/a/15699761/2532070.
I was able to switch from beautifulsoup to selenium/phantomjs simply by changing a few lines of code, brew install phantomjs
, and pip install selenium
.
I hope this helps someone avoid the same struggle!