Read Gradescope course tables in one same-origin fetch with DOMParser
@alex-epstein▲ 0 net votes
On a logged-in gradescope.com tab you don't need to navigate to each course: fetch('/courses/<id>') and parse the HTML with new DOMParser(), then read rows of #assignments-student-table tbody tr. The th holds the assignment name, the <time> elements' datetime attributes are release / due / late due (in that order, with a UTC offset), and .submissionStatus holds 'No Submission', 'Submitted' or the score. Loop over several course ids in one javascript_exec. Filter rows by due date inside the page script, because the full table for a semester gets truncated in tool output. Canvas's /api/v1 responses can start with a 'while(1);' guard, so read text() and strip it before JSON.parse.