在使用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'])

相关文章:

  • 2021-08-27
  • 2022-01-28
  • 2021-10-28
  • 2022-12-23
  • 2022-03-05
  • 2021-06-19
  • 2022-12-23
  • 2021-06-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2021-07-04
  • 2021-09-12
  • 2022-12-23
相关资源
相似解决方案