我找不到如何使用命令行选项启动phantomjs --cookies-file=/path/to/cookies.txt和其他...
试过driver = webdriver.PhantomJS('--cookies-file=/tmp/ph_cook.txt')但没什么.
由于未知原因add_cookie,不能保持记录.
我试着像这样开始幻影:
driver = webdriver.PhantomJS(executable_path = "phantomjs --cookies-file=/tmp/ph_cook.txt --webdriver")
Run Code Online (Sandbox Code Playgroud)
但得到错误:
raise WebDriverException("Unable to start phantomjs with ghostdriver.", e)
selenium.common.exceptions.WebDriverException: Message: Unable to start phantomjs with ghost driver.
Run Code Online (Sandbox Code Playgroud)