Skip to content

Instantly share code, notes, and snippets.

View kikegarcia's full-sized avatar

Enrique J. García kikegarcia

View GitHub Profile
@kikegarcia
kikegarcia / boot_selenium.sh
Last active June 30, 2022 11:49 — forked from xiaol825/install.txt
How to install Chrome, ChromeDriver and Selenium on CentOS. Plus a sample scraping script.
#!/bin/bash
nohup xvfb-run --server-args="-screen 0 1920x1080x24" java -Dwebdriver.chrome.driver="/usr/local/bin/chromedriver" -Dwebdriver.chrome.whitelistedIps="" -jar /opt/selenium-server-standalone.jar -role hub &
sleep 10
nohup xvfb-run --server-args="-screen 0 1920x1080x24" java -Dwebdriver.chrome.driver="/usr/local/bin/chromedriver" -Dwebdriver.chrome.whitelistedIps="" -jar /opt/selenium-server-standalone.jar -role node -hub http://10.160.1.5:4444/grid/register &