- Download your selected contacts as CSV, save it as
./google.csv
- Create
/venv/
and dependencies
python3 -m venv venv
source venv/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt
-
Install your web browser
-
Move the downloaded driver to path (Firefox in this case):
sudo cp ./geckodriver /usr/local/bin
Selenium requires a driver to interface with the chosen browser. Firefox, for example, requires geckodriver, which needs to be installed before the below examples can be run. Make sure it’s in your PATH, e. g., place it in /usr/bin or /usr/local/bin.
Failure to observe this step will give you an error selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH.
Other supported browsers will have their own drivers available. Links to some of the more popular browser drivers follow.
-
RUN IT
python3 wa.py