Selenium Python在Ubuntu VPS上运行时崩溃

时间:2018-03-13 02:04:22

标签: python selenium ubuntu selenium-chromedriver vps

您好我有一个脚本可以从11880.com中删除信息。该脚本在我的计算机中执行时效果很好,但在数字海洋液滴中的一些记录后总是崩溃。

以下是我的电脑规格:

  • 操作系统:macOS High Sierra版本10.13.3
  • chromedriver 2.36

VPS规格:

  • 操作系统:Linux 4.4.0-112-generic
  • chromedriver 2.36

这是终端输出错误的屏幕截图: enter image description here

顺便说一句,我已经在我的chromedriver选项中有这个(因为我已经搜索了很多关于这个问题并发现这是一个解决方案,但对我不起作用):

  chrome_options = Options()  
  chrome_options.add_argument("--headless")
  chrome_options.add_argument('--no-sandbox')
  driver = webdriver.Chrome("/root/Downloads/chromedriver", chrome_options=chrome_options)

0 个答案:

没有答案
相关问题