<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ChromeDriver installation in Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/chromedriver-installation-in-databricks/m-p/23300#M16054</link>
    <description>&lt;P&gt;What worked for me was downloading the chrome driver and ensuring its the latest version with shell scripts in the same notebook I used for web scraping.  You can see all the details here:  &lt;A href="https://stackoverflow.com/a/76515841/22103209" alt="https://stackoverflow.com/a/76515841/22103209" target="_blank"&gt;https://stackoverflow.com/questions/69192050/using-selenium-within-databricks-chrome-not-reachable/76515841#76515841&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 15:29:54 GMT</pubDate>
    <dc:creator>Evan_MCK</dc:creator>
    <dc:date>2023-06-21T15:29:54Z</dc:date>
    <item>
      <title>ChromeDriver installation in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/chromedriver-installation-in-databricks/m-p/23295#M16049</link>
      <description>&lt;P&gt;I am working on a Webscraping logic and need to install Chrome driver. How can I install it in the Databricks workbook ?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 06:01:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/chromedriver-installation-in-databricks/m-p/23295#M16049</guid>
      <dc:creator>AJ270990</dc:creator>
      <dc:date>2022-04-08T06:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: ChromeDriver installation in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/chromedriver-installation-in-databricks/m-p/23296#M16050</link>
      <description>&lt;P&gt;@Abhishek Jain​&amp;nbsp;, In the clusters library tab, please install &lt;B&gt;PyPi chromedriver-binary==83.0&lt;/B&gt; (or higher, probably version in the script can also be updated)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To cluster init script, please add /databricks/scripts/&lt;A href="https://selenium-install.sh" alt="https://selenium-install.sh" target="_blank"&gt;selenium-install.sh&lt;/A&gt;, which you create using the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in the databricks notebook code, please use something similar to the second code below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.fs.mkdirs("dbfs:/databricks/scripts/")
dbutils.fs.put("/databricks/scripts/selenium-install.sh","""
#!/bin/bash
apt-get update
apt-get install chromium-browser=91.0.4472.101-0ubuntu0.18.04.1 --yes
wget &lt;A href="https://chromedriver.storage.googleapis.com/91.0.4472.101/chromedriver_linux64.zip" target="test_blank"&gt;https://chromedriver.storage.googleapis.com/91.0.4472.101/chromedriver_linux64.zip&lt;/A&gt; -O /tmp/chromedriver.zip
mkdir /tmp/chromedriver
unzip /tmp/chromedriver.zip -d /tmp/chromedriver/
""", True)
display(dbutils.fs.ls("dbfs:/databricks/scripts/"))&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;from selenium import webdriver
chrome_driver = '/tmp/chromedriver/chromedriver'
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--headless')
# chrome_options.add_argument('--disable-dev-shm-usage') 
chrome_options.add_argument('--homedir=/dbfs/tmp')
chrome_options.add_argument('--user-data-dir=/dbfs/selenium')
# prefs = {"download.default_directory":"/dbfs/tmp",
#          "download.prompt_for_download":False
# }
# chrome_options.add_experimental_option("prefs",prefs)
driver = webdriver.Chrome(executable_path=chrome_driver, options=chrome_options)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 20:47:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/chromedriver-installation-in-databricks/m-p/23296#M16050</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-04-11T20:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: ChromeDriver installation in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/chromedriver-installation-in-databricks/m-p/23298#M16052</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use this solution to use seleium in databricks, but i can't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow image&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1953iCDBAFBCB3EE3A709/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 00:02:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/chromedriver-installation-in-databricks/m-p/23298#M16052</guid>
      <dc:creator>Buga</dc:creator>
      <dc:date>2022-06-21T00:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: ChromeDriver installation in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/chromedriver-installation-in-databricks/m-p/23299#M16053</link>
      <description>&lt;P&gt;Hi, @Gustavo Queiroz​&amp;nbsp;&amp;nbsp;​&amp;nbsp;I've created a new version of the selenium with the databricks manual. Please look here &lt;A href="https://community.databricks.com/s/feed/0D58Y00009SWgVuSAL" alt="https://community.databricks.com/s/feed/0D58Y00009SWgVuSAL" target="_blank"&gt;https://community.databricks.com/s/feed/0D58Y00009SWgVuSAL&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 14:27:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/chromedriver-installation-in-databricks/m-p/23299#M16053</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-11-09T14:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: ChromeDriver installation in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/chromedriver-installation-in-databricks/m-p/23300#M16054</link>
      <description>&lt;P&gt;What worked for me was downloading the chrome driver and ensuring its the latest version with shell scripts in the same notebook I used for web scraping.  You can see all the details here:  &lt;A href="https://stackoverflow.com/a/76515841/22103209" alt="https://stackoverflow.com/a/76515841/22103209" target="_blank"&gt;https://stackoverflow.com/questions/69192050/using-selenium-within-databricks-chrome-not-reachable/76515841#76515841&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 15:29:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/chromedriver-installation-in-databricks/m-p/23300#M16054</guid>
      <dc:creator>Evan_MCK</dc:creator>
      <dc:date>2023-06-21T15:29:54Z</dc:date>
    </item>
  </channel>
</rss>

