Skip to content

Instantly share code, notes, and snippets.

@bgerd
bgerd / download_classwork.js
Last active March 17, 2022 18:04 — forked from iarigby/download_assignments.js
Download all classwork from a google classroom topic page
/**
HOW TO USE
1. go to classwork topic page ( URL should look like https://classroom.google.com/w/(.*)/tc/(.*) )
2. open developer console ( F12 or right click > inspect element > console in top)
3. copy and paste this code, assignments will be downloaded in 5 second intervals
NOTE: CHANGE auth_user IF NECESSARY
if you are signed in to multiple google accounts, you need to select whichever you use for classroom
(ie freeuni account). If that account is the default one, leave at 0. Otherwise, sign in to gmail with that account
and the number will be displayed in url bar (https://mail.google.com/mail/u/$number), enter that