kallqvist / skillshare-downloader

MIT License
313 stars 105 forks source link

Not Working!! #68

Open tushar-wq opened 3 years ago

tushar-wq commented 3 years ago

Even after changing cookies many times, it does not work. It downloads the first video and then shows an exception "Exception: Failed to read video ID from data"

Can anyone please see what the issue is? I am using the cookies for my premium account. It was working 4 days ago but when I try today it does not seem to work :(

trixal commented 3 years ago

Yes, it can't work. A change has been made. I already know how to do it gradually, but I haven't been able to find out the key here how each video changes the first original bc: xxx, the subsequent links are also encrypted 'video_hashed_id'. Does anyone want to participate in the survey? My method works, but it is not suitable for screwing.

ForsakenNGS commented 3 years ago

I'm down, just tell me what you need ;)

KClaassen commented 3 years ago

Same, happy to have a look :) What workaround are you currently using?

BitWizCoder commented 3 years ago

Same error. "Exception: Failed to read video ID from data" i used to use software call allavsoft. but that software need actual login cant use cookies. waiting if for any solution to the problem. Thanks.

DarkSuniuM commented 2 years ago

65 Fixes this.

piratesephiroth commented 2 years ago

65 Fixes this.

Not anymore. The original script still works though. It's just that they made the PHPSESSID cookie HttpOnly, so it's hidden from "document.cookie" and that's the only cookie you actually need for downloading the videos. Now you must get it using a cookie manager browser extension.

DarkSuniuM commented 2 years ago

65 Fixes this.

Not anymore. The original script still works though. It's just that they made the PHPSESSID cookie HttpOnly, so it's hidden from "document.cookie" and that's the only cookie you actually need for downloading the videos. Now you must get it using a cookie manager browser extension.

65 has nothing to do with cookies, and doesn't change behavior of the script with cookies, That just reads the video id from thumbnail as an alternative method, so...

piratesephiroth commented 2 years ago

65 Fixes this.

Not anymore. The original script still works though. It's just that they made the PHPSESSID cookie HttpOnly, so it's hidden from "document.cookie" and that's the only cookie you actually need for downloading the videos. Now you must get it using a cookie manager browser extension.

65 has nothing to do with cookies, and doesn't change behavior of the script with cookies, That just reads the video id from thumbnail as an alternative method, so...

Yes, I know that, and that thumbnail video id has already changed to a different format, that's why I wrote "not anymore". The root of the issue has everything to do with cookies. You just need the PHPSESSID one and that's been put out of reach of javascript, so that's the reason people can't access any paid videos when they get the cookies from the javascript console.

ogeeDeveloper commented 2 years ago

How do i go about to download videos without this annoying exception error, my internet is slow and i want to download videos

piratesephiroth commented 2 years ago

How do i go about to download videos without this annoying exception error, my internet is slow and i want to download videos

Do as I wrote above, use a cookie manager browser extension and get your PHPSESSID cookie from the skillshare website. You only need that to download videos. Then add it like: cookie = "PHPSESSID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

abu3beid commented 2 years ago

How do i go about to download videos without this annoying exception error, my internet is slow and i want to download videos

Do as I wrote above, use a cookie manager browser extension and get your PHPSESSID cookie from the skillshare website. You only need that to download videos. Then add it like: cookie = "PHPSESSID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

Thank you so much ♥

zachshirow commented 2 years ago

thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you,

rroyo commented 2 years ago

The PHPSESSID cookie works perfectly, thanks! Now though the script names the files to their Spanish translation —I'm in Spain. When using the default cookie, the name of the downloaded file was in English. Any idea on how to change this behavior?

piratesephiroth commented 2 years ago

The PHPSESSID cookie works perfectly, thanks! Now though the script names the files to their Spanish translation —I'm in Spain. When using the default cookie, the name of the downloaded file was in English. Any idea on how to change this behavior?

Yeah you have to add an "accept_language" header now, otherwise it's gonna use the language based on your location.. You can try my fork, I made it use English and it also saves the files with better names and organizes them in folders.

rroyo commented 2 years ago

Thanks for the prompt response. Your fork is working perfectly.

ghazikr commented 1 year ago

@piratesephiroth Thank you!!!! I am curious how did the developer figure out that https://api.skillshare.com/classes/ is the endpoint to call ? I looked into the network tab but failed to see any calls to that endpoint.

04anubhavv commented 1 year ago

He checked the network activity of the Skillshare mobile app, as the script uses Skillshare/5.3.0; Android 9.0.1 user agent.