Selenium and PhantomJS Error: “Cannot connect to GhostDriver”
问题 I am running Selenium and PhantomJS to input search terms into a website and retrieve the number of hits for each search term. I have to do this 130,000+ times, so the code has been running nicely for a day until suddenly the program broke with the following error: Traceback (most recent call last): File "CBBPlyNwsScrape.py", line 82, in <module> browser = webdriver.PhantomJS() File "/Library/Python/2.7/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 50, in __init__ self