r0oth3x49 / lynda-dl

A cross-platform python based utility to download courses from lynda.com for personal offline use.
MIT License
295 stars 95 forks source link

[question] How to use organization in a cli? #4

Closed harshes53 closed 6 years ago

harshes53 commented 6 years ago

So I have a lynda account using New York Public Library, this is the url I use to access the account: nypl.org

I tried all the possible variations for -o, can you show me how to use in a cli for a given organization link?

Thanks!

r0oth3x49 commented 6 years ago

@harshes53 thanks for trying this out. can please use some screenshots to show me the way you are using hide your creds. here is poc how to use this against organization. untitled

harshes53 commented 6 years ago

Sooo it worked, all I had to do was to change org_url in lynda/_compat.py from org_url = "https://www.lynda.com/portal/sip?org={organization}" to org_url = "https://www.lynda.com/portal/patron?org={organization}"

Thank you! 💯

Murtadhajfadhil commented 6 years ago

I'm facing the same problem with my organization account jeffcolibrary.org and ottawa.ca and I tried @harshes53 solution but I'm still facing the same problem, can you help me, please? @harshes53 @r0oth3x49

harshes53 commented 6 years ago

@Murtadhajfadhil edit this line, replace it with your organization url. make sure {organization} is still there in URL.

Murtadhajfadhil commented 6 years ago

@harshes53 Please can you show me how? This is my organization URL : https://ottawa.ca/en

harshes53 commented 6 years ago

@Murtadhajfadhil how do you log to lynda.com? ....do you login from any page which is from lynda.com(official site) ??

Murtadhajfadhil commented 6 years ago

from here: https://www.lynda.com/portal/sip?org=ottawa.ca @harshes53