Skip to content

Commit 26eaeb5

Browse files
Add extra parameters to scrape.ts to bypass HTTP 500 error (this time without messing up the indentation)
1 parent 9b0fee2 commit 26eaeb5

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

scheduleofclasses/scrape.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,37 @@ const getUrl = (term: string, departments: string[], page: number) =>
189189
`${BASE}/scheduleOfClassesStudentResult.htm?${new URLSearchParams([
190190
['selectedTerm', term],
191191
['tabNum', 'tabs-dept'],
192+
["_selectedSubjects", "1"],
193+
["schedOption1", "true"],
194+
["_schedOption1", "on"],
195+
["_schedOption11", "on"],
196+
["_schedOption12", "on"],
197+
["schedOption2", "true"],
198+
["_schedOption2", "on"],
199+
["_schedOption4", "on"],
200+
["_schedOption5", "on"],
201+
["_schedOption3", "on"],
202+
["_schedOption7", "on"],
203+
["_schedOption8", "on"],
204+
["_schedOption13", "on"],
205+
["_schedOption10", "on"],
206+
["_schedOption9", "on"],
207+
["schDay", "M"],
208+
["_schDay", "on"],
209+
["schDay", "T"],
210+
["_schDay", "on"],
211+
["schDay", "W"],
212+
["_schDay", "on"],
213+
["schDay", "R"],
214+
["_schDay", "on"],
215+
["schDay", "F"],
216+
["_schDay", "on"],
217+
["schDay", "S"],
218+
["_schDay", "on"],
219+
["schStartTime", "12:00"],
220+
["schStartAmPm", "0"],
221+
["schEndTime", "12:00"],
222+
["schEndAmPm", "0"],
192223
...departments.map(department => ['selectedDepartments', department]),
193224
['page', String(page)]
194225
])}`

0 commit comments

Comments
 (0)