Modify the variables in main.py
to change which department, what years, what campus, etc is scraped.
# Default values
SEASONS = ["AUTUMN", "WINTER", "SPRING"]
YEARS = ["2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020"]
DEPARTMENT = "CSS"
CAMPUS = "Bothell"
OUTPUT_FILE = "courses.json"
poetry shell
python3 main.py
Install poetry.
Install pyenv.
Install Python 3.8.4
using pyenv
.
Run the following commands:
pyenv local 3.8.4
poetry install
To develop and test locally using Docker, install Docker. Then run the following commands:
docker build --target development -t huskyapi/web-scraper .
docker run -it huskyapi/web-scraper /bin/bash