I am attempting to run this script:
https://github.com/Chillee/coursera-dl-all
However, the script fails at the line session = webdriver.PhantomJS()
This will work perfectly.
import platform
from os import getcwd
from selenium import webdriver
if (platform.system() == 'Windows'):
driver = webdriver.PhantomJS(executable_path=getcwd() + "\phantomjs")
if (platform.system() == 'Darwin'):
driver = webdriver.PhantomJS(executable_path=getcwd() + "/phantomjs")