Selenium

Documentation

Install process

Module

Like other modules, this can be installed with the following:

py -m pip install selenium

Gecko Driver

Selenium requires access to geckodriver, located here:

Set Executable Path

Replace <path> with the actual path to the driver wherever it is saved to on disk.

from selenium import webdriver
driver = webdriver.Firefox(executable_path=r'<path>\geckodriver.exe')
driver.get("<weblink>")

Reference:

https://stackoverflow.com/questions/49929374/notadirectoryerror-winerror-267-the-directory-name-is-invalid-error-while-inv/49930067