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 trying to download stackskill course #13

Closed shywolf91 closed 4 years ago

shywolf91 commented 4 years ago

Hello I having issues using gb-dl to download a course i'm enrolled in on stackskill

output

ubuntu:~/python$ gb-dl.py

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

                                        Version : 1.6.3.1
                            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://stackskills.com/courses/enrolled/229520
Email : 
Password :
Trying to Login ...
Cloudflare reCaptcha detected, unfortunately you haven't loaded an anti reCaptcha provider correctly via the 'recaptcha' parameter.
Enter cookie instead : 
Downloading to :/home/user/download
Collecting course information ...

Course name : 
Enter your gb-dl license key :
Trying cookie authentication ...
[+] Cookie authentication succeeded
Getting course sections ...

[+] Found Section :  1. Course Introduction & How to Take this Course

Preparing  lecture 1 of 6 download ...
Starting download ...
[Wistia] m5btp32v7k: Downloading JSON metadata
[download] Destination: FATC FIRST LECTURE.mp4-m5btp32v7k.mp4
[download] 100% of 38.85MiB in 00:09
Downloading attachment : 7-Steps-Template-of-Financial-Statements-and-Modeling-and-Valuation.xlsx
100% [....................................................] 10751875 / 10751875Preparing  lecture 2 of 6 download ...
Starting download ...
[Wistia] vaodwdn6ir: Downloading JSON metadata
[download] Destination: FATC S1L1 Introduction and How to Take this Course [INSERT WHAT YOU FILM B4 TONY ANIMATION HERE].mp4-vaodwdn6ir.mp4
[download] 100% of 1.65GiB in 16:22
Downloading attachment : 7-Steps-Template-of-Financial-Statements-and-Modeling-and-Valuation.xlsx
100% [....................................................] 10751875 / 10751875Preparing  lecture 3 of 6 download ...
Starting download ...
[Wistia] iz4tgmi4zw: Downloading JSON metadata
[download] Destination: FATC S1L3 Overview of Different Financial Analyst Roles and How They Work Together.mp4-iz4tgmi4zw.mp4
[download] 100% of 199.37MiB in 00:27
Preparing  lecture 4 of 6 download ...
Starting download ...
[Wistia] urt71040gw: Downloading JSON metadata
[download] Destination: FATC S1L4 What Are the Major Differences Between the Different Financial Analyst Roles.mp4-urt71040gw.mp4
[download] 100% of 400.27MiB in 01:06
Preparing  lecture 5 of 6 download ...
Starting download ...
[Wistia] 4q678zfy81: Downloading JSON metadata
[download] Destination: FATC S1L6 What Are the Pros and Cons of Different ROles.mp4-4q678zfy81.mp4
[download] 100% of 133.07MiB in 00:22
Preparing  lecture 6 of 6 download ...
[-]Error can not download attachment  : string indices must be integers

[+] Found Section :  2. Optional Exercise: Decide What Financial Analyst Role Interests You the Most

Preparing  lecture 1 of 3 download ...
Starting download ...
[Wistia] 8nfbbl0bt8: Downloading JSON metadata
[download] Destination: FATC S1L7 How to Take this Survey to Determine What Financial Analyst Role You Might Enjoy.mp4-8nfbbl0bt8.mp4
[download] 100% of 421.22MiB in 01:12
Preparing  lecture 2 of 3 download ...
Preparing  lecture 3 of 3 download ...
Starting download ...
[Wistia] ox70c93trq: Downloading JSON metadata
[download] Destination: FATC S1L9 (L8 was exercise) Survey Results.mp4-ox70c93trq.mp4
[download] 100% of 144.12MiB in 00:27
[-] Error : [Errno 2] No such file or directory: '3.3. Global Macroeconomics + How the World of Finance Works + Excel Part 1/4 The IMF'
barakagb commented 4 years ago

Hi @shywolf91 , Kindly create a folder named '3.3. Global Macroeconomics + How the World of Finance Works + Excel Part 1/4 The IMF' where the course is downloaded it should work. Am working for a fix in the mean time.

shywolf91 commented 4 years ago

Tried making that folder and it seemed to work but every folder after that seems to fail

 mkdir "5.5. Global Econ. & Excel Part 3/4: Currencies, Monetary Policy and Interest Rates"
mkdir: cannot create directory ‘5.5. Global Econ. & Excel Part 3/4: Currencies, Monetary Policy and Interest Rates’: No such file or directory
ubuntu:~/python/The Complete Financial Analyst Training & Investing Course$
barakagb commented 4 years ago

Hi @shywolf91 , upgrade gb-dl , I fixed the issue.

upgrade to version 1.6.3.4 pip install gb-dl -U

shywolf91 commented 4 years ago

The update seemed to work but i've encounterd two more errors on ubuntu and windows:

ubuntu:

[+] Found Section :  39. Introduction to Creating Financials, Modeling and Valuing Companies

Preparing  lecture 1 of 2 download ...
Starting download ...
[Wistia] r285317ulf: Downloading JSON metadata
[download] Destination: FATC-S39L05-Intro-to-7-step-template.mp4-r285317ulf.mp4
[download] 100% of 24.72MiB in 00:03
Downloading attachment : 7-Steps-Template-of-Financial-Statements-and-Modeling-and-Valuation (3).xlsx
100% [....................................................] 10751875 / 10751875Preparing  lecture 2 of 2 download ...
Starting download ...
[Wistia] uirsedva59: Downloading JSON metadata
[download] Destination: FATC-S391-WAS-S42L2-S11L2-Financial-Modeling-Best-Practices.mp4-uirsedva59.mp4
[download] 100% of 20.95MiB in 00:03
[-] Error : 'ascii' codec can't encode character u'\u2019' in position 62: ordinal not in range(128)
jellyfin@ubuntu:~/python$

windows

[download] Destination: FATC S3L11 Investment Banking Politics to Be Aware of ..mp4-scousmzigi.mp4
[download] 100% of 197.05MiB in 00:39

[+] Found Section :  10. Stock Markets + Portfolio Management: Part 1: Learn by Doing Excel Exercises

[+] Found Section :  11. Stock Markets + Portfolio Management: Part 2: Learn by Doing Excel Exercises

[+] Found Section :  12. Stock Markets + Portfolio Management: Part 3: Learn by Doing Excel Exercises

[-] Error : [Error 3] The system cannot find the path specified: u'12.12. Stock Markets + Portfolio Management Part 3 Learn by Doing Excel Exercises'
barakagb commented 4 years ago

what version of gb-dl are you using ?

shywolf91 commented 4 years ago

1.6.3.4

barakagb commented 4 years ago

upgrade to 1.6.3.7 pip install gb-dl -U

shywolf91 commented 4 years ago

upgraded to 1.6.3.7 and this error is still present on windows 10: https://stackskills.com/courses/enrolled/229520 [-] Error : [Error 3] The system cannot find the path specified: u'12.12. Stock Markets + Portfolio Management Part 3 Learn by Doing Excel Exercises'

I'll try running it on ubuntu later and see if any errors pop up.

shywolf91 commented 4 years ago

updated on ubuntu too and got same error: [-] Error : 'ascii' codec can't encode character u'\u2019' in position 62: ordinal not in range(128) version 1.6.3.7

barakagb commented 4 years ago

Hi that is strange what version of python are you running ? Try upgrading to v1.6.3.9 pip install gb-dl -U

and verify you are running the latest version Also when Errors occur provide the full screenshot of the output . Thanks

shywolf91 commented 4 years ago

version 1.6.3.9

I get a different error now:

[+] Found Section :  44. Financial Model Data Sources and Financial Models

Preparing  lecture 1 of 5 download ...
Starting download ...
[Wistia] h98i584shr: Downloading JSON metadata
[download] Destination: FATC-S42L1-S11L1-Why-is-Financial-Modeling-Importa.mp4-h98i584shr.mp4
[download] 100% of 24.35MiB in 00:03
Preparing  lecture 2 of 5 download ...
Starting download ...
[Wistia] ws6r220jcs: Downloading JSON metadata
[download] Destination: FATC-S42L2-YOU-ALREADY-KNOW-HOW-TO-MODEL.mp4-ws6r220jcs.mp4
[download] 100% of 6.90MiB in 00:00
Preparing  lecture 3 of 5 download ...
Starting download ...
[Wistia] quqatc3qzi: Downloading JSON metadata
[download] Destination: FATC-S43L3-S12L3-Introduction-to-SEC.gov-Anothe.mp4-quqatc3qzi.mp4
[download] 100% of 47.48MiB in 00:06
Preparing  lecture 4 of 5 download ...
Starting download ...
[Wistia] bz4b9axhzu: Downloading JSON metadata
[download] Destination: FATC-S43L2-S12L2-Introduction-to-Investor-Relations.mp4-bz4b9axhzu.mp4
[download] 100% of 35.64MiB in 00:05
Preparing  lecture 5 of 5 download ...
Starting download ...
[Wistia] myifegy5wx: Downloading JSON metadata
[download] Destination: FATC S43L4 S12L4 Yahoo Finance (Another Grea.mp4-myifegy5wx.mp4
[download] 100% of 250.88MiB in 00:40

[+] Found Section :  45. The IPO of Shark Virtual Reality Part 1 (Case #5 Modeling Shark VR)

[+] Found Section :  46. Intro to Valuation (for All Types of Investors, including  Growth & Value I

[-] Error : unbalanced parenthesis
barakagb commented 4 years ago

That is due to the section name it self has unbalanced parenthesis

shywolf91 commented 4 years ago

any way to fix it?

barakagb commented 4 years ago

Hello @shywolf91 , For your case download / upgrade to v 1.6.3.9.5 .Thanks