kallqvist / skillshare-downloader

MIT License
312 stars 105 forks source link

Improvement to the instructions #66

Open yatru opened 3 years ago

yatru commented 3 years ago

Better to paste in the console:

copy(document.cookie);

yatru commented 3 years ago

Even better copy('cookie = "'+document.cookie+'"'); will provide you with the python variable

yatru commented 3 years ago

One line command to paste in the console and it copies the command ready to execute in python

a=window.location.href.match(/\d+/g);a=a[a.length-1];copy("echo "+"\"from downloader import Downloader\n"+'dl = Downloader(\''+document.cookie+'\')'+'\ndl.download_course_by_class_id('+a+')'+"\"|python\n");