Materials for a Dec. 2023 mini bootcamp on web scraping with Python.
- If you haven't already, follow our guide to install Python on your computer.
- Download and unzip the class materials onto your desktop. (Unzipping instructions: If you're on a PC, right-click on the file and choose "Extract all." Mac users, double-click the file.)
- Open your computer's command-line interface -- cmd on a PC, Terminal on a Mac -- and cd into the folder that you just unzipped. If you unzipped it onto your desktop, the command to get there would be something like
cd Desktop/python-mini-bootcamp-scraping-2023-main
. Then tryls
(ordir
on a PC) to list the files and ensure that you're in the right place. - Create a virtual environment:
- PC:
python -m venv env
- Mac:
python3 -m venv env
- Activate the virtual environment:
- PC:
.\env\Scripts\activate
- Mac:
source env/bin/activate
- Verify that you're in the activated virtual environment -- you should see
(env)
prepended to the command prompt -- then install the Python dependencies:pip install -r requirements.txt
. - Install the Playwright browsers:
playwright install