Python selenium example

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

Task

Python selenium examplePY

Pairs well with

README.md
Copied
1
# Template: Python selenium example
2
3
Simple task that demonstrates how to load a website in Python using [selenium](https://www.selenium.dev/) and Firefox.
4
5
## Next steps
6
7
- 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`
10
11
> You need to have Firefox and `geckodriver` installed to run locally.
12
13
- 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`.
15
16
- Make any changes to the `selenium_example.py` script
17
- Deploy your task: `airplane deploy --yes`
Have a template suggestion? Let us know!