Use Google Chrome from your python scrips using WebDriver for navigating to web pages, user input, JavaScript execution, and more.
You can use selenium on Ubuntu with Python3 by following this steps:
-
Clone the project (change myproject to whatever your want) git clone https://github.com/jrosell/chrome-selenium-python myproject cd myproject
-
Install pip for python3 using: sudo apt-get install python3-pip
-
Install selenium for python3 using: sudo python3 -m pip install -U selenium
-
If you need to update current chromedriver, download it from https://sites.google.com/a/chromium.org/chromedriver/downloads and extract it there. Currently using ChromeDriver 78.0.3904.70
-
Reference chromedriver from your scripts. Change webdriver.Chrome call with your chromedriver path on run.py Having /home/jordi/chrome-selenium-python path, I'm using /home/jordi/chrome-selenium-pythonchromedriver
-
Run it python3 run.py
-
Have fun! Copy run.py script and edit your new scripts.
You can do pull resquests or open issues if you want to help.