kurtzace / diary2023

0 stars 0 forks source link

diary2023

courses

How to export and report your learning progress

Mid 2023 output

Udemy

run this in console.

json.results.forEach(x=>console.log(`${x.title};udemy;${x.completion_ratio};${x.last_accessed_time};${x.visible_instructors[0].title}`))

Paste in new notepad

save as .csv

Optionally add

sep=;

as line 1

Pluralsight

call
/profile/data/completedcourses/karanbhandari
and 
/profile/data/currentlylearning/karanbhandari

copy responses and run

json.forEach(x=>console.log(`${x.title};pluralsight;${x.percentComplete};${x.lastViewedTimestamp?x.lastViewedTimestamp:x.timeCompleted};${x.authors[0]?.displayName}`))

Youtube

https://takeout.google.com/settings/takeout/downloads

Create new export

Deselect all

Unselect all types and only select Youtube history

image

Search for youtube>select

select JSON

image

Click on Next/proceed

Visit takeout after some time

Download

assign json as entire youtube json

then


let blacklist = ["hit","cardio","morning","property","hindi","deepak","melvin","song","choreo","danc",
"monkey","jcb","workout","dumb","icc","ipl","trailer","animal","fnp","car","phone","sams","onep","recipe",
"bjp","news","rhym","song","baby","melon","stretch","kettle"];

console.log(json.filter(x=>x.time.indexOf("2023")>-1).filter(x=>!blacklist.some(s => x.title.toLowerCase().includes(s))).length);

json.filter(x=>x.time.indexOf("2023")>-1).filter(x=>!blacklist.some(s => x.title.toLowerCase().includes(s))).forEach(x=>console.log(`${x.title};youtube;NA;${x.time};${x.titleUrl}`));