Skip to content

Instantly share code, notes, and snippets.

View miguelusque's full-sized avatar
🤓
Coding from home

Miguel Martínez miguelusque

🤓
Coding from home
View GitHub Profile
@miguelusque
miguelusque / download_class_dojo_archive.py
Created July 4, 2023 12:47 — forked from dedy-purwanto/download_class_dojo_archive.py
Download all photos and videos from your Class Dojo account
"""
Download all ClassDojo photos and videos in your timeline.
by kecebongsoft
How it works:
1. Fetch list of items in the timeline, if there are multiple pages, it will fetch for all pages.
2. Collect list of URLs for the attachment for each item
3. Download the files into local temporary directory, and also save the timeline activity as a json file.
@miguelusque
miguelusque / download-classdojo-media.js
Created July 4, 2023 12:41 — forked from Patrick330/download-classdojo-media.js
Saving the images and videos from your ClassDojo storyline
/* run this in the console on the ClassDojo page */
function download(url, prefix) {
fetch(url).then(function(t) {
return t.blob().then((b)=> {
var a = document.createElement("a");
a.href = URL.createObjectURL(b);
var n = url.lastIndexOf('/');
var filename = url.substring(n + 1);
a.setAttribute("download", prefix+filename);