This repository contains Python scripts in development. Currently, it includes a script that uses Selenium WebDriver to interact with web pages.
Before running the script, you need to have some prerequisites installed:
- Python 3.x
- Pip (Python package manager)
- Google Chrome (or another browser compatible with Selenium WebDriver)
- ChromeDriver (if you are not using
webdriver_manager
)
-
Clone the repository:
git clone https://github.com/usuario/repo.git cd repo
-
Create a
.env
file in the root of the project with the browser binary location:CHROME_BINARY_LOCATION=/path/to/your/chrome
Note: Make sure to replace
/path/to/your/chrome
with the actual path to the browser binary on your machine. -
Install the project dependencies:
pip install -r requirements.txt
The
requirements.txt
file should contain the following libraries:selenium webdriver-manager python-dotenv
You can create this file with the following command:
pip freeze > requirements.txt
-
Run the Python script:
python3 /path/to/your/script/vagas.py
Make sure to adjust the script path as necessary.