There are a lot of practical uses for automating user behavior in a browser. Everything from testing your web application to logging into Twitter and auto following people.
But first you have to install the tools. Here is everything you need to run your scripts.
First install selenium with pip
pip install selenium
Next download Firefox. Visit https://www.mozilla.org/firefox and download and install.
Next you'll need the geckodriver
brew install geckodriver
That's it. Now you can run your Python scripts.
from selenium import webdriver browser = webdriver.Firefox() browser.get('https://google.com')