-
Use pip to install selenium library
pip install selenium
-
Download WebDriver(Default will use Microsoft Edge) and put it beside app.py. The WebDriver download link is as follows
If want to use firefox, you need to download geckodriver, and then uncomment
browser = webdriver.Firefox(executable_path="geckodriver.exe")
and commentbrowser = webdriver.Edge(executable_path=DRIVER)
in app.py -
Run the app.py
python app.py
Microsoft Edge Driver https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
mozilla / geckodriver https://github.com/mozilla/geckodriver/releases