Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Working!! #68

Open
tushar-wq opened this issue Aug 25, 2021 · 17 comments
Open

Not Working!! #68

tushar-wq opened this issue Aug 25, 2021 · 17 comments

Comments

@tushar-wq
Copy link

tushar-wq commented Aug 25, 2021

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
Copy link

trixal commented Sep 15, 2021

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
Copy link

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

@KClaassen
Copy link

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

@BitWizCoder
Copy link

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
Copy link

#65 Fixes this.

@piratesephiroth
Copy link

#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
Copy link

#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
Copy link

#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
Copy link

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

@piratesephiroth
Copy link

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
Copy link

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
Copy link

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

@rroyo
Copy link

rroyo commented Apr 14, 2022

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
Copy link

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
Copy link

rroyo commented Apr 15, 2022

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

@ghazikr
Copy link

ghazikr commented Apr 11, 2023

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests