barakagb / gb-dl

A python based utility to download courses from infosec4tc.teachable.com , academy.ehacking.net and stackskills.com for personal offline use.
https://pypi.org/project/gb-dl/
MIT License
39 stars 14 forks source link

Can't use the application #39

Closed KaydenKhor closed 3 years ago

KaydenKhor commented 3 years ago

Hey I've donated and got my key. When i run gb-dl.py it still comes up the initial file.

The download link doesn't have any new scripts.

can someone guide me?

barakagb commented 3 years ago

Hi @KaydenKhor , please share a screenshot . Have you installed gb-dl using pip install gb-dl ?

barakagb commented 3 years ago

try python gb-dl.py . If it fails check you env variables to see if python is added.

KaydenKhor commented 3 years ago

python: can't open file 'gb-dl.py': [Errno 2] No such file or directory

This is what i got

KaydenKhor commented 3 years ago

why does it says invalid course url?

barakagb commented 3 years ago

Did you get it to run? Can you share the course url ?

KaydenKhor commented 3 years ago

learn.xfactormethod.com

KaydenKhor commented 3 years ago

Hello is it possible that your code is not working? sorry. Because I tried https://instagrizzle.teachable.com/ it says invalid course URL as well @barakagb

barakagb commented 3 years ago

The scripts works.Let me add the two sites and I will let you know soon.

On Sun, Mar 21, 2021, 20:45 KaydenKhor @.***> wrote:

Hello is it possible that your code is not working? sorry. Because I tried https://instagrizzle.teachable.com/ it says invalid course URL as well @barakagb https://github.com/barakagb

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/barakagb/gb-dl/issues/39#issuecomment-803630634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHJTRBPMTQLIL3ND3LHZET3TEYWD5ANCNFSM4ZRW7TLQ .

barakagb commented 3 years ago

@Kayden . I have added the sites .Please try to download now and let me know. Thanks

KaydenKhor commented 3 years ago

It says enter cookies instead:

KaydenKhor commented 3 years ago

What do i do when it replies: [-] Cookie authentication failed!

KaydenKhor commented 3 years ago

@barakagb This is what i got now:

Browser: firefox Trying cookie authentication ... [+] Cookie authentication succeeded [+] Logged in as XXXXXXX Downloading to :C:\Users\XXXXXXXXXXXXXXXXX\AppData\Local\Programs\Python\Python37-32\Scripts Collecting course information ... [-] Error : 'NoneType' object has no attribute 'find'

barakagb commented 3 years ago

Yes so know you need to extract cookies from your browser.An easy way of doing that is log on to the site with Firefox once successful logged in run gb-dl.py -d firefox it will automatically load the cookies for you.

KaydenKhor commented 3 years ago

@barakagb Why do i get the [-] Error : 'NoneType' object has no attribute 'find'

barakagb commented 3 years ago

@barakagb This is what i got now:

Browser: firefox Trying cookie authentication ... [+] Cookie authentication succeeded [+] Logged in as XXXXXXX Downloading to :C:\Users\XXXXXXXXXXXXXXXXX\AppData\Local\Programs\Python\Python37-32\Scripts Collecting course information ... [-] Error : 'NoneType' object has no attribute 'find'

It seems the site you are downloading from is a bit different. I will have to update the script for you.On the mean time just try different sites and let me know which do not work.

KaydenKhor commented 3 years ago

I tried both websites, they gave me the same error of [-] Error : 'NoneType' object has no attribute 'find'

Let me know once the script is updated. Thanks.

KaydenKhor commented 3 years ago

@barakagb Is it done already?

barakagb commented 3 years ago

Yes @KaydenKhor please upgrade to 1.6.9.1 using pip install gb-dl -U . image

KaydenKhor commented 3 years ago

@barakagb It's still not working for both the websites...

KaydenKhor commented 3 years ago

Could it because of the fact that they link it to their own domain from teachable?

barakagb commented 3 years ago

I have tested it on https://instagrizzle.teachable.com/ and it works . I have not tested it on the xfactormethod b'se I do not have access to any course there , you can privately send me cookies to xfactormethod so that I try to fix it. Thanks.

KaydenKhor commented 3 years ago

@barakagb instagrizzle works fine. What's your email?

barakagb commented 3 years ago

info@gb-dl.cf

KaydenKhor commented 3 years ago

Done.

barakagb commented 3 years ago

Done.!! upgrade to v1.6.9.2 using pip install gb-dl -U . Cheers!!

KaydenKhor commented 3 years ago

Yes it works! Does that mean that if i got any other new URL, I have to inform you to update the URL?

barakagb commented 3 years ago

Different courses have different structures . Some may download others may need updating the script. So if you face that just raise an issue here on github.

KaydenKhor commented 3 years ago

What about all the notes in the specific videos on teachable? is it downloadable?

barakagb commented 3 years ago

Some resources are downloadable some aren't . if you face a challenge downloading a resource you can just raise a ticket.

On Mon, Mar 22, 2021, 16:53 KaydenKhor @.***> wrote:

What about all the notes in the specific videos on teachable? is it downloadable?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/barakagb/gb-dl/issues/39#issuecomment-804078654, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHJTRBKPKYVPNAI522SUKYTTE5DUBANCNFSM4ZRW7TLQ .