Screenshot: available via screen

474 ワード

selenium+PhantomJSを使用して爬虫類を行う場合にエラーを報告
selenium.common.exceptions.TimeoutException: Message: 
Screenshot: available via screen

driverの初期化時にパラメータ"service_args=['--ignore-ssl-errors=true','--ssl-protocol=TLSv1']"を入力すればよい.
driver = webdriver.PhantomJS(service_args=['--ignore-ssl-errors=true', '--ssl-protocol=TLSv1'])

転載先:https://www.cnblogs.com/vevy/p/9212976.html