By applying web scraping techniques and parsing HTML documentation from Coursicle usign the BeautifulSoup4 library, a list of all professors who previously taught a given class was efficiently retrieved. Each entry includes the professor's name, a direct link to their profile, and their rating (if available), enabling quick access to relevant course data. This streamlined approach allows for fast and organized collection of instructor information.
- Open your preferred code editor and navigate to the
cd Coursicle\coursicleto enter directory - Activate the virtual environment by running:
venv/scripts/activate(If not working, use:Unblock-File -Path ".\venv\Scripts\Activate.ps1") - Install the required libraries by running:
pip install -r requirements.txt - Run grabing:
py grabing.py - Enter course name (abbreviated) and course number
The default is set to Binghamton University, so you can change it if you'd like. Also, use the appropriate course name and number as it uses a url to pull the information, meaning a non-existent url will result in an error. You cannot repeatedly use this as coursicle has a captcha set up, which my program isn't designed to bypass. Repeatedly doing this may bypass Coursicle's Terms of Service, so I advice not to do this. Consider the ethics before you continue.
