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

Unable to run #47

Closed Amolkulkarni2 closed 3 years ago

Amolkulkarni2 commented 3 years ago

Hello there, I am having windwos 10 system. I have anaconda on system. from Jyupeter note book I have installed gb-dl "!pip install gb-dl" now I am not sure how can I run this file. I tried to run this file from cmd prompt but I ti showing unrecognised file. Can oyu please explain step by step how can I run this.

Thanks in advance.

Amolkulkarni2 commented 3 years ago

when i run gb-dl.py on cmd prompt . it is opening .py file in notpad

barakagb commented 3 years ago

Hi @Amolkulkarni2 , you should have python3 installed and set your path variables. Then open cmd or powershell and

  1. pip install gb-dl
  2. run gb-dl.py
Amolkulkarni2 commented 3 years ago

Hi @barakagb ,I have installed python version 3.8.5 I am getting following error

senttogbdl

Amolkulkarni2 commented 3 years ago

image

barakagb commented 3 years ago

Just type gb-dl.py to run it. Not run gb-dl.py

On Fri, Jul 9, 2021, 08:34 Amolkulkarni2 @.***> wrote:

Hi ,I have installed python version 3.8.5 I am getting following error

[image: senttogbdl] https://user-images.githubusercontent.com/42038526/125028238-511cce00-e0a5-11eb-87e4-414ac6a6c7f5.PNG

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

Amolkulkarni2 commented 3 years ago

When I just typed gb-dl.py . It asked me to open file option . I opened in notepad . image

Amolkulkarni2 commented 3 years ago

I got a key but where shall I put it?

barakagb commented 3 years ago

Thats unusual it usually works that way. Try python gb-dl.py

Amolkulkarni2 commented 3 years ago

Awh ok .. let me try again but I already tried that way too .

On Fri, 9 Jul 2021 at 2:22 PM, barakagb @.***> wrote:

Thats unusual it usually works that way. Try python gb-dl.py

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

--

Kind regards,

Amol Kulkarni

Amolkulkarni2 commented 3 years ago

I have tried this .. See background folder has that *.py file. but getting error message .

image

Amolkulkarni2 commented 3 years ago

just a note @barakagb ,I wont having access to laptop over a weekend so I will test it or respond on monday :)

Amolkulkarni2 commented 3 years ago

Hi @barakagb can you please tell me?

barakagb commented 3 years ago

Hi @Amolkulkarni2 , please try the below This happened because most probably you have set notepad as the default program to open a .py file. Go to default programs app in windows. Select choose app by extension. Here search for .py files. Change the option from notepad to python. This should solve your problem.

Reference:https://stackoverflow.com/questions/15121714/how-do-i-get-a-python-program-to-run-instead-of-opening-in-notepad

Amolkulkarni2 commented 3 years ago

@barakagb okay ..Let me try it today and will let you know.

Amolkulkarni2 commented 3 years ago

Thanks @barakagb . I am able to login but now gettting following error image

barakagb commented 3 years ago

@Amolkulkarni2 try again.

Amolkulkarni2 commented 3 years ago

Trying.. When it ask for cookies Enter course url : https://financial-confidence-hub1.teachable.com/courses/enrolled/729919 Email : amolkulkarni.2@gmail.com Password : Trying to Login ... Enter cookie instead:

I downloaed cookies using get cookies txt extension for Chrome. It says authenticating cookies and then window get disappear.

also @barakagb I got two keys so which will be valid? shall I share key with you ?

barakagb commented 3 years ago

For the keys use the any the other will be decommissioned.

For the cookie is way easier to use firefox.Log on to the course in firefox then run gb-dl -d firefox . This will load the cookies automatically, else use the value of _session_id .

Amolkulkarni2 commented 3 years ago

@barakagb : Thank you so much for your help and sorry if I am doing silly mistakes :( Now I have installed Mozzila firefox . On power shell I am writing a command as below =>

after hitting enter it opend py file . still It is asking for cookie instead

I have installed cookie quick manager . from there I got session Id . I have entered a id a. it says cookies authenticated and download at C:\downloads but after that window get closed.

it shows following window and then window get disappeared

barakagb commented 3 years ago

I think the window disappears after the script has completed or stopped. Try using using cmd and not powershell.

Amolkulkarni2 commented 3 years ago

Ok, Just tried using command prompt and getting following error image

barakagb commented 3 years ago

I need to have a look at that please send me the cookie at info[at]gb-dl.cf so I can check it out.

Amolkulkarni2 commented 3 years ago

I have sent you cookie file.

barakagb commented 3 years ago

Recieved.

Amolkulkarni2 commented 3 years ago

Okay.

barakagb commented 3 years ago

@Amolkulkarni2 the issue is now fixed. Upgrade gb-dl by running "pip install gb-dl -U" without the quotes .

image

Amolkulkarni2 commented 3 years ago

Wowwww @barakagb you are a STARRR Thank you , It is working :)

Amolkulkarni2 commented 3 years ago

@barakagb One question ... is it possible to download from this site ? https://powerbiexperiencecourse.club.hotmart.com/lesson/o4E060NmOz/welcome-to-a-new-experience

barakagb commented 3 years ago

Currently no, may be in the future.

Amolkulkarni2 commented 3 years ago

Okay, @barakagb Thank you .