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

Error : list index out of range #23

Closed hapkom2k closed 4 years ago

hapkom2k commented 4 years ago

Hello Trying to download course via your script, but got Error : list index out of range

Trying cookie authentication ...
[+] Cookie authentication succeeded
Getting course sections ...
Downloading course image ...
[-] Error : list index out of range
barakagb commented 4 years ago

Hi , please share the url to the course you trying to dowload.

On Sun, Jul 26, 2020, 00:40 hapkom2k notifications@github.com wrote:

Hello Trying to download course via your script, but got Error : list index out of range

Trying cookie authentication ... [+] Cookie authentication succeeded Getting course sections ... Downloading course image ... [-] Error : list index out of range

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/barakagb/gb-dl/issues/23, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHJTRBONL4ZIDDGADVHIMB3R5NGLRANCNFSM4PHUW6UA .

hapkom2k commented 4 years ago

https://codewithmosh.com/courses/enrolled/417695

hapkom2k commented 4 years ago

i also tryed course at https://academy.zerotomastery.io/courses/enrolled/694968, but got [-] Invalid course URL. error thats strange, it uses teachable.com as a platform.

barakagb commented 4 years ago

Hi @hapkom2k ,I have try upgrading the script using pip install gb-dl -U

Here is my output

Course name : Complete Python Mastery Trying cookie authentication ... [+] Cookie authentication succeeded Getting course sections ... [-] Could not download course image.

[+] Found Section : 1- Getting Started (32m)

barakagb commented 4 years ago

i also tryed course at https://academy.zerotomastery.io/courses/enrolled/694968, but got [-] Invalid course URL. error thats strange, it uses teachable.com as a platform.

The script was not designed for this . However after upgrading the script you may test if it works.

hapkom2k commented 4 years ago

Unfortunately, it doesn't work

E:\CodeMosh>gb-dl

                   _____ ____                 _ _
                  / ____|  _ \               | | |
                 | |  __| |_) |  ______    __| | |
                 | | |_ |  _ <  |______|  / _` | |
                 | |__| | |_) |          | (_| | |
                  \_____|____/            \__,_|_|

                                        Version : v1.6.4.6
                            Author  : BarakaGB
                            Visit   : https://github.com/barakagb/gb-dl
                            Donation: https://www.buymeacoffee.com/barakagb
                            Key url : https://bmc.xyz/l/gbdl

    A python based utility to download courses from infosec4tc.teachable.com ,
    ehacking.net ,stackskills.com and designerup.co ...etc for personal offline
    use.

    Usage: gb-dl.py [-h]

Enter course url : https://codewithmosh.com/courses/enrolled/417695
Email : 
Password :
Trying to Login ...
Cloudflare reCaptcha detected
Enter cookie instead: 
Downloading to :E:\CodeMosh
Collecting course information ...

Course name : Complete Python Mastery
Trying cookie authentication ...
[+] Cookie authentication succeeded
Getting course sections ...
Downloading course image ...
[-] Could not download course image.
[-] Error : list index out of range
barakagb commented 4 years ago

try running gb-dl with -i and share the output

hapkom2k commented 4 years ago

output is same

barakagb commented 4 years ago

Can you contact me via email ?

On Sun, Jul 26, 2020, 16:50 hapkom2k notifications@github.com wrote:

output is same

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/barakagb/gb-dl/issues/23#issuecomment-663990530, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHJTRBNXAFD2DSNRM73JGN3R5QYDJANCNFSM4PHUW6UA .

hapkom2k commented 4 years ago

The problem turned out to be in the connection, when using a VPN the error does not pop up. But another one appears. It's a shame, but the script did not work for me.