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

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

Open
BradTheBlue opened this issue Jul 29, 2022 · 59 comments
Open

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

BradTheBlue opened this issue Jul 29, 2022 · 59 comments

Comments

@BradTheBlue
Copy link

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

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

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

same issue here

@johnktrz
Copy link

it's dead

@MolangPiupiu
Copy link

I have the same issue

@overhaul666
Copy link

overhaul666 commented Jul 30, 2022

Is there any other way to get skill share course

@johnktrz
Copy link

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

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

Same issue

@data2005
Copy link

data2005 commented Aug 1, 2022

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

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

surajcdry commented Aug 1, 2022

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

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

@Myselfmru
Copy link

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

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

I have the skillshare account !!

@surajcdry
Copy link

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

abdul-usman commented Aug 2, 2022

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 - [email protected]

  • 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

@data2005
Copy link

data2005 commented Aug 2, 2022

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

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

data2005 commented Aug 2, 2022

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

@CrissGill
Copy link

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

data2005 commented Aug 2, 2022

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

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 [email protected]

@abdul-usman
Copy link

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

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

@data2005
Copy link

data2005 commented Aug 2, 2022

Sorry do not have telegram account.... Thanks

@abdul-usman
Copy link

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

@data2005 It's ok I will mail you

@data2005
Copy link

data2005 commented Aug 2, 2022

Thanks. I eagerly look forward to it.

@johnktrz
Copy link

johnktrz commented Aug 2, 2022

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

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

@surajcdry
Copy link

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

@calvinhobbes23
Copy link
Owner

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

@overhaul666
Copy link

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

Myselfmru commented Aug 7, 2022

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

CrissGill commented Aug 7, 2022

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

data2005 commented Aug 7, 2022

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

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

data2005 commented Aug 7, 2022

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

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

@data2005
Copy link

data2005 commented Aug 8, 2022

Great, many thanks to calvinhobbes23

@ghost
Copy link

ghost commented Aug 8, 2022

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

ghost commented Aug 8, 2022

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

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

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

@calvinhobbes23
Copy link
Owner

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

calvinhobbes23 commented Aug 9, 2022

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

@Jhonny1021
Copy link

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

@data2005
Copy link

data2005 commented Aug 9, 2022

Thanks. What are the steps?

@calvinhobbes23
Copy link
Owner

calvinhobbes23 commented Aug 9, 2022

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 - [email protected]

  • 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.

@data2005
Copy link

data2005 commented Aug 9, 2022

Thank you. The big issue here is that for downloading the course one needs membership access to skillshare. Once you had taken a free trial membership, one cannot reapply for a free trail again. Skillshare keeps note of account info (creit card , paypal etc) and have been known to charge subscription fee right away. They no longer offer monthly subscription so one can be charged yearly subscription's hefty cost!

Unless someone is willing to share skillshare account login deatils?

@Myselfmru
Copy link

Thank you. The big issue here is that for downloading the course one needs membership access to skillshare. Once you had taken a free trial membership, one cannot reapply for a free trail again. Skillshare keeps note of account info (creit card , paypal etc) and have been known to charge subscription fee right away. They no longer offer monthly subscription so one can be charged yearly subscription's hefty cost!

Unless someone is willing to share skillshare account login deatils?

Exactly, as I mentioned earlier, its a collaborative task. Every member interested in this can share their free trial account in turn after the 30 day limit. Depending on the number of participants, we can keep this alive for a certain period. But the critical thing here is that sharing the credentials will also disclose the credit card info which IMHO will make this idea collapse. The good thing is that calvinhobbes23 did a very laudable job to give us the steps required to download the courses for free. It's now on us to deal with the free membership trials and credit cards issue.

@calvinhobbes23
Copy link
Owner

@Myselfmru To be Honest, credit for the new steps go to @AbdulUsman45 I believe.

@CrissGill
Copy link

@Myselfmru To be Honest, credit for the new steps go to @AbdulUsman45 I believe.

I need magic.pyc source code to edit

@MusicCookie
Copy link

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 - [email protected]

  • 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

I opened cmd and typed in the first command "git clone https://github.com/calvinhobbes23/Skillshare-DL.git", but I was met with an error... :
"C:\Users\MY_USERPROFILE>git clone https://github.com/calvinhobbes23/Skillshare-DL.git
'git' is not recognized as an internal or external command,
operable program or batch file."

What should I do ?

P.S I am running on Windows 10

@calvinhobbes23
Copy link
Owner

calvinhobbes23 commented Aug 14, 2022

install git using chocolatey or as mentioned here:
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
if you dont have the account password OR cookie, no point in trying.

@Seanobucko
Copy link

Can anybody help me im on Mac and for the life of me cannot figure this out

@CrissGill
Copy link

CrissGill commented Aug 27, 2022

Can anybody help me im on Mac and for the life of me cannot figure this out

You can use Google colab
{Link :- https://colab.research.google.com/drive/1cLcPjRYeMZ0f2uKN6-poCaAies76uWR5?usp=sharing } save your all courses in Google drive then simply use Google take out . Extract your data from Google drive ✌️

@abdul-usman
Copy link

If you want any course I will download and send just email me - [email protected]

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