Free-Games
Free-Games copied to clipboard
Add automatic WebDriver download
Proposal
Add webdriver-manager
dependency to automate the process of retrieving the correct version of GeckoDriver (or ChromeDriver if needed) when user launches the script.
Result
If user installed a newer version of the browser this package will automatically download the correct version of the driver.
How
It is as simple as adding this dependency to the requirements.txt
and then adding:
from selenium import webdriver
from webdriver_manager.firefox import GeckoDriverManager
driver = webdriver.Firefox(executable_path=GeckoDriverManager().install())