Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 644 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 644 Bytes

hwparser.py

hwparser.py is a simple python script to parse the HTML source of the PCR PoS (aka the new HHMS). It requires Beautiful Soup, a python library for pulling data out of HTML and XML files. To install BS4 with pip:

pip install beautifulsoup4

Usage

Authenticate, then go to the week you want to parse. Make sure that you are in weekly view. Save the source of the page. Then, run

python hwparser.py /path/to/source.html out.txt

A file called out.txt will be written with the date each assignment is due, the class, and the details of the assignment.