Python selenium example
Copied link
A task that demonstrates how to scrape a website in Python using selenium and Firefox.

Task
Python selenium examplePY
Pairs well with
1# Template: Python selenium example23Simple task that demonstrates how to load a website in Python using [selenium](https://www.selenium.dev/) and Firefox.45## Next steps67- Navigate to the python_selenium_example directory: `cd python_selenium_example`8- Make sure you have `selenium` installed. An example `requirements.txt` is provided with the necessary `selenium` dependency and can be installed via `pip install -r requirements.txt`.9- Run your task locally: `airplane dev`1011> You need to have Firefox and `geckodriver` installed to run locally.1213- To install Firefox, visit [this page](https://www.mozilla.org/firefox/).14- To install `geckodriver`, download the package for your system [here](https://github.com/mozilla/geckodriver/releases) and place the binary in your `$PATH`.1516- Make any changes to the `selenium_example.py` script17- Deploy your task: `airplane deploy --yes`
Have a template suggestion? Let us know!