calvinhobbes23 / Skillshare-DL

146 stars 163 forks source link

only the first video downloading then followed by an error #28

Open BradTheBlue opened 2 years ago

BradTheBlue commented 2 years ago

the error: Traceback (most recent call last): File "/root/.Skillshare-DL/dl.py", line 16, in main() File "/root/.Skillshare-DL/dl.py", line 11, in main dl.download_course_by_url(course_url) File "/root/.Skillshare-DL/skillshare.py", line 32, in download_course_by_url self.download_course_by_class_id(m.group(1)) File "/root/.Skillshare-DL/skillshare.py", line 72, in download_course_by_class_id raise Exception('Failed to read video ID from data') Exception: Failed to read video ID from data

appears after downloading the first video.

CrissGill commented 2 years ago

the error: Traceback (most recent call last): File "/root/.Skillshare-DL/dl.py", line 16, in main() File "/root/.Skillshare-DL/dl.py", line 11, in main dl.download_course_by_url(course_url) File "/root/.Skillshare-DL/skillshare.py", line 32, in download_course_by_url self.download_course_by_class_id(m.group(1)) File "/root/.Skillshare-DL/skillshare.py", line 72, in download_course_by_class_id raise Exception('Failed to read video ID from data') Exception: Failed to read video ID from data

appears after downloading the first video.

Struggling with same issue...

overhaul666 commented 2 years ago

Traceback (most recent call last): File "/root/.Skillshare-DL/dl.py", line 16, in main() File "/root/.Skillshare-DL/dl.py", line 11, in main dl.download_course_by_url(course_url) File "/root/.Skillshare-DL/skillshare.py", line 32, in download_course_by_url self.download_course_by_class_id(m.group(1)) File "/root/.Skillshare-DL/skillshare.py", line 72, in download_course_by_class_id raise Exception('Failed to read video ID from data') Exception: Failed to read video ID from data

I am getting same issue

vampireprincess commented 2 years ago

same issue here

johnktrz commented 2 years ago

it's dead

MolangPiupiu commented 2 years ago

I have the same issue

overhaul666 commented 2 years ago

Is there any other way to get skill share course

johnktrz commented 2 years ago

Is there any other way to get skill share course

There is, but this is the easiest code to use for non-programmer

Save us @calvinhobbes23 :)

CrissGill commented 2 years ago

Is there any other way to get skill share course

There is, but this is the easiest code to use for non-programmer

Save us @calvinhobbes23 :)

Ok , so if you know any other way please share that skill ;)

scaruslooner commented 2 years ago

Same issue

data2005 commented 2 years ago

I am not much familiar with python language but a quick look at the code it seems that the Skillshare account info that was used to download videos is perhaps no longer valid as all videos except first one has no video hash value which is exposed only if one has a valid subscription. Thanks

calvinhobbes23 commented 2 years ago

This is account issue. If someone has an account to spare, I can fix it. please upload credentials in a text file here: https://www.saggy.xyz/folders/cb86e97869fad500e678860850cc11a5 password: share

file will vanish. This is by design. Thanks

surajcdry commented 2 years ago

This is account issue. If someone has an account to spare, I can fix it. please upload credentials in a text file here: https://www.saggy.xyz/folders/cb86e97869fad500e678860850cc11a5 password: share

file will vanish. This is by design. Thanks

You mean a GitHub account or a Skillshare account?

calvinhobbes23 commented 2 years ago

skillshare account is needed for this to be fixed. I will fix the repo code once I have the account

Myselfmru commented 2 years ago

skillshare account is needed for this to be fixed. I will fix the repo code once I have the account

Can this be a free skillshare account? I mean there are 30 days trials.... Can we contribute in sharing an account for that?

overhaul666 commented 2 years ago

skillshare account is needed for this to be fixed. I will fix the repo code once I have the account

Can this be a free skillshare account? I mean there are 30 days trials.... Can we contribute in sharing an account for that?

ig it will work, if you can access the complete course...

abdul-usman commented 2 years ago

I have the skillshare account !!

surajcdry commented 2 years ago

@AbdulUsman45, kindly upload the ID and password in a text file to https://www.saggy.xyz/folders/cb86e97869fad500e678860850cc11a5

Password: share

@calvinhobbes23 will work on the code accordingly.

Thank you so much!

abdul-usman commented 2 years ago

Guys, it's working need to make some changes in the code !!!

image

Follow this steps to download the Video or course for free

Note: For Windows Users

1. Open Command Prompt or Windows + R

image

Replace the dl.py code with the following code.


import sys, os
from skillshare import Skillshare, splash

or by class ID:

dl.download_course_by_class_id(189505397)

def main(): dl = Skillshare("PHPSESSID=If You want this code txt Me") course_url = sys.argv[1] dl.download_course_by_url(course_url)

if name == "main": splash() main()


Note: `If You want PHPSESSID Text Me` or `Mail Me - abdulu767@gmail.com`

- After You have done all the changes 
- Type the command in the terminal (Inorder to change the directory ) ```cd Skillshare-DL```
- Next Type ```pip install -r requriments.txt```

![image](https://user-images.githubusercontent.com/92779783/182351017-bcfddeaf-e6aa-4d1a-8d73-e57878f7ca5a.png)
- After you have successfully installed all required packages 
- Type ```python dl.py "COURSE_LINK" ```
- Now, All the files will be saved one by one 
data2005 commented 2 years ago

Thank you for your help and time. But I could not get it to work... please see below. Please anyone help?

Traceback (most recent call last): File "dl.py", line 19, in main() File "dl.py", line 14, in main dl.download_course_by_url(course_url) File "skillshare.py", line 32, in download_course_by_url self.download_course_by_class_id(m.group(1)) File "skillshare.py", line 72, in download_course_by_class_id raise Exception('Failed to read video ID from data') Exception: Failed to read video ID from data

CrissGill commented 2 years ago

Thank you for your help and time. But I could not get it to work... please see below. Please anyone help?

Traceback (most recent call last): File "dl.py", line 19, in main() File "dl.py", line 14, in main dl.download_course_by_url(course_url) File "/home/osboxes/sk/skillshare.py", line 32, in download_course_by_url self.download_course_by_class_id(m.group(1)) File "/home/osboxes/sk/skillshare.py", line 72, in download_course_by_class_id raise Exception('Failed to read video ID from data') Exception: Failed to read video ID from data

Did you got PHPSESSID❓

data2005 commented 2 years ago

No Thanks I did not....how do I do that? Thank you

CrissGill commented 2 years ago

No Thanks I did not....how do I do that? Thank you

We need a working skill share account if you have, then send it to @calvinhobbes23 that would help all of us Thank you

data2005 commented 2 years ago

I see it is the same account issue as I had found out. Sorry I do not have working skillshare account. I have emailed as outlined in the comments by [AbdulUsman45] . Let's see what happens...if I get it, I can maybe able to tell what to do.

abdul-usman commented 2 years ago

Thank you for your help and time. But I could not get it to work... please see below. Please anyone help? Traceback (most recent call last): File "dl.py", line 19, in main() File "dl.py", line 14, in main dl.download_course_by_url(course_url) File "/home/osboxes/sk/skillshare.py", line 32, in download_course_by_url self.download_course_by_class_id(m.group(1)) File "/home/osboxes/sk/skillshare.py", line 72, in download_course_by_class_id raise Exception('Failed to read video ID from data') Exception: Failed to read video ID from data

Did you got PHPSESSID❓

Send me the video link to My mail abdulu767@gmail.com

abdul-usman commented 2 years ago

I see it is the same account issue as I had found out. Sorry I do not have working skillshare account. I have emailed as outlined in the comments by [AbdulUsman45] . Let's see what happens...if I get it, I can maybe able to tell what to do.

I have Send You @data2005

abdul-usman commented 2 years ago

Join My Telegram channel https://t.me/+TD1ZMA0oHGY3ZTM1

data2005 commented 2 years ago

Sorry do not have telegram account.... Thanks

abdul-usman commented 2 years ago

Sorry do not have a telegram account.... Thanks

@data2005 It's ok I will mail you

data2005 commented 2 years ago

Thanks. I eagerly look forward to it.

johnktrz commented 2 years ago

No Thanks I did not....how do I do that? Thank you

You can get PHPSESSID using a Cookie manager in chrome extension

abdul-usman commented 2 years ago

Join my telegram (https://t.me/+TD1ZMA0oHGY3ZTM1) I will send you the course or video fast as possible !!!

surajcdry commented 2 years ago

@AbdulUsman45 and @calvinhobbes23 guys is there a way to make the Skillshare DL code work?

calvinhobbes23 commented 2 years ago

I am still waiting for someone to share a skillshare account. I don't have a way to get one, sorry.

overhaul666 commented 2 years ago

@AbdulUsman45 come on bro share ur skillshare acc. and stop promoting ur telegram

I am still waiting for someone to share a skillshare account. I don't have a way to get one, sorry.

Myselfmru commented 2 years ago

Guys, from what I read on the threads, a free Skillshare account will work. Given that there are 30 days trials, if 12 members share a trial account every month in turn, we can make this work for a year. Just an example. Now correct me if I'm wrong. So I don't see what could go wrong. OR am I on the wrong track? Please guide.

CrissGill commented 2 years ago

Guys, from what I read on the threads, a free Skillshare account will work. Given that there are 30 days trials, if 12 members share a trial account every month in turn, we can make this work for a year. Just an example. Now correct me if I'm wrong. So I don't see what could go wrong. OR am I on the wrong track? Please guide.

How to get 30 days free trial❓ Any article ❓

data2005 commented 2 years ago

if you go to https://www.skillshare.com/ site at the top is currently 1 month trial offer. such as link https://www.skillshare.com/membership/checkout?via=teacher-referral-blue-banner . You will have to register and add payment details. You will not be charged till 30th day (maybe cancel on the 29th day).

CrissGill commented 2 years ago

if you go to https://www.skillshare.com/ site at the top is currently 1 month trial offer. such as link https://www.skillshare.com/membership/checkout?via=teacher-referral-blue-banner . You will have to register and add payment details. You will not be charged till 30th day (maybe cancel on the 29th day).

Screenshot_2022-08-07-21-08-17-67_40deb401b9ffe8e1df2f1cc5ba480b12.jpg i think it depends upon the nation to nation.... I can't see any 30 days trial

data2005 commented 2 years ago

Maybe try with VPN? I tried and I could see the following

Get 1 free month of Skillshare Get unlimited access to thousands of inspiring classes Taught by industry leaders & working professionals Topics include illustration, design, photography, and more

calvinhobbes23 commented 2 years ago

Hang-on please. I created an account will work on it tonight.

data2005 commented 2 years ago

Great, many thanks to calvinhobbes23

ghost commented 2 years ago

This is account issue. If someone has an account to spare, I can fix it. please upload credentials in a text file here: https://www.saggy.xyz/folders/cb86e97869fad500e678860850cc11a5 password: share

file will vanish. This is by design. Thanks

you can take my account. it has like 1.5 months of sub.

ghost commented 2 years ago

This is account issue. If someone has an account to spare, I can fix it. please upload credentials in a text file here: https://www.saggy.xyz/folders/cb86e97869fad500e678860850cc11a5 password: share file will vanish. This is by design. Thanks

you can take my account. it has like 1.5 months of sub.

i sent my account in your shared folder. i know the trick to create 3 months trial account for free. when this account is expired, please let me know. I will give you another account.

CrissGill commented 2 years ago

This is account issue. If someone has an account to spare, I can fix it. please upload credentials in a text file here: https://www.saggy.xyz/folders/cb86e97869fad500e678860850cc11a5 password: share file will vanish. This is by design. Thanks

you can take my account. it has like 1.5 months of sub.

i sent my account in your shared folder. i know the trick to create 3 months trial account for free. when this account is expired, please let me know. I will give you another account.

Thank you for this and to all the members that involves in skillshare dl to make it working ✌️🤩

surajcdry commented 2 years ago

Thank you so much @calvinhobbes23! Till when will this be solved? Really needed a course asap.

calvinhobbes23 commented 2 years ago

So I have some bad news. As someone earlier explained in another issue comment, the cookie now needs PHPSESSID value for it to work however that expires in 1-2 minutes and download stops. It seems skillshare may be fighting this download method and they seem to be succeeding. I am not the original developer but if someone has a solution please create a pull request and I will merge.

calvinhobbes23 commented 2 years ago

Thank you @saifeealii for the account however! EDIT: fixed the name

Jhonny1021 commented 2 years ago

@calvinhobbes23 I have been able to download from python directly and in the terminal as the steps that are described

data2005 commented 2 years ago

Thanks. What are the steps?

calvinhobbes23 commented 2 years ago

Guys, it's working need to make some changes in the code !!!

image

Follow this steps to download the Video or course for free

Note: For Windows Users

1. Open Command Prompt or Windows + R

  • And Type The following code
  • git clone https://github.com/calvinhobbes23/Skillshare-DL.git image
  • Make sure to change the dl.py file
  • You can find the file in the Default location C:\Users\YOUR_USERPROFILE \Skillshare-DL

image

Replace the dl.py code with the following code.

import sys, os
from skillshare import Skillshare, splash

# or by class ID:
# dl.download_course_by_class_id(189505397)

def main():
    dl = Skillshare("PHPSESSID=If You want this code txt Me")
    course_url = sys.argv[1]
    dl.download_course_by_url(course_url)

if __name__ == "__main__":
    splash()
    main()

Note: If You want PHPSESSID Text Me or Mail Me - abdulu767@gmail.com

  • After You have done all the changes
  • Type the command in the terminal (Inorder to change the directory ) cd Skillshare-DL
  • Next Type pip install -r requriments.txt

image

  • After you have successfully installed all required packages
  • Type python dl.py "COURSE_LINK"
  • Now, All the files will be saved one by one

This method very well works but it means the person downloading the course must have access to the cookie/account in their browser to extract PHPSESSID value and most likely needs to use the same pc to download. i.e. no colab.