There are many ways to use chromedriver & selenium. Here are the ways we do it in this guide:
- Google Colab
- Deepnote
- macOS
- Linux (debian systems)
- Windows (coming soon)
- Docker
Go to this link. It uses the notebook saved here.
Much like Google Colab, you can use Deepnote.com to run this setup. Click this link to launch it. It uses the notebook saved here.
brew install --cask chromedriver
cd path/to/your/project
python3 -m venv .
source bin/activate
pip install selenium
You can use
path/to/your/project/bin/pip install selenium
as well
sudo apt-get update
sudo apt-get install -y \
build-essential \
python3-dev \
python3-setuptools \
chromium-driver
cd path/to/your/project
python3 -m venv .
source bin/activate
pip install selenium
You can use
path/to/your/project/bin/pip install selenium
as well
pre-built
FROM codingforentrepreneurs/python:3.9-webapp-selenium
manually
FROM python:3.9-slim
RUN apt-get update && \
apt-get install -y \
build-essential \
python3-dev \
python3-setuptools \
git \
git-crypt \
unzip \
chromium-driver \
gcc \
make
RUN python -m pip install selenium
# Create a virtual environment in /opt
RUN python3 -m venv /opt/venv && /opt/venv/bin/python -m pip install selenium
RUN apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*