ScottyLabs / course-api

The new version of the Scheduling API, now with prerequisites, course descriptions, and more!
https://scottylabs.org/course-api/
MIT License
21 stars 14 forks source link

Error getting courses with 'TBA' in the title #60

Open samflattery opened 5 years ago

samflattery commented 5 years ago

For some reason a lot of the courses on the schedule, 33-121 for example, are formatted like: 33-121: Physics 1 for Science Students: TBA. In the HTML it looks like this:

<TR>
<TD NOWRAP>33121</TD>
<TD>Physics I for Science Students:</TD>
<TD NOWRAP>12.0</TD>
<TD>&nbsp;</TD>
<TD>&nbsp;</TD>
<TD>&nbsp;</TD>
<TD>&nbsp;</TD>
<TD>&nbsp;</TD>
<TD>&nbsp;</TD>
</TR>

<TR>
<TD>&nbsp;</TD>
<TD>TBA</TD>
<TD>&nbsp;</TD>
<TD NOWRAP>Lec</TD>
<TD NOWRAP>MWF</TD>
<TD NOWRAP>08:30AM</TD>
<TD NOWRAP>09:20AM</TD>
<TD NOWRAP>DH 2315</TD>
<TD NOWRAP>Pittsburgh, Pennsylvania</TD>
<TD>Garoff</TD>
</TR>

The course api incorrectly identifies the TBA part as the course name, instead of the name in the first tags, thus TBA is the course name that shows up in the outputted JSON.