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

Invalid course URL #63

Open Beta1o opened 2 years ago

Beta1o commented 2 years ago

Hi Barakagb,

I’m struggling to use the script to backup some courses at the Teachable-based site https://xxxxxxx.io/ .

If I understand correctly looking at previous issues, the site needs to be manually added somewhere. Is it possible for you to add it?

Thanks

barakagb commented 2 years ago

@Beta1o site added. Please try now

Beta1o commented 2 years ago

it giving different issue which showing below image

[i] Browser: firefox [i] Trying cookie authentication ... [-] Error: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

Beta1o commented 2 years ago

now it working but it not working fully and only download one video with creating same folders but without videos even pdf files not downloaded which is in attachments and also not getting course name just look into the result:

image

Course name : Unknown course [i] Getting course sections ... [i] Downloading course image ...

[+] Found Section : Introduction [i] Preparing lecture 1 of 3 download ... [i] Starting download ... [Wistia] lwdwfbsow1: Downloading JSON metadata [download] Destination: Switched_Campus-001-Introduction-Course_Overview_v1.2.mp4-lwdwfbsow1.bin [download] 100% of 40.73MiB in 00:50 [i] Preparing lecture 2 of 3 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 3 of 3 download ... [i] Downloading attachment : TechCast_CCIE_EI_v1_L2 Topology Labs.zip 100% [................................................................................] 5964 / 5964 [+] Found Section : Module-1: Virtual Local Area Networks (VLANs) and Switchport Modes [i] Preparing lecture 1 of 3 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 2 of 3 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 3 of 3 download ... [-]Error can not download attachment : string indices must be integers

[+] Found Section : Module-2: Virtual Trunking Protocol - VTP [i] Preparing lecture 1 of 4 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 2 of 4 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 3 of 4 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 4 of 4 download ... [-]Error can not download attachment : string indices must be integers

[+] Found Section : Module-3: EtherChannel [i] Preparing lecture 1 of 3 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 2 of 3 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 3 of 3 download ... [-]Error can not download attachment : string indices must be integers

[+] Found Section : Module-4: Spanning-Tree Protocols [i] Preparing lecture 1 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 2 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 3 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 4 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 5 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 6 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 7 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 8 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 9 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 10 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 11 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 12 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Preparing lecture 13 of 13 download ... [-]Error can not download attachment : string indices must be integers [i] Sanitizing file names ... [i] [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\Beta\AppData\Local\Microsoft\GameDVR\KnownGameList.bin' -> 'C:\Users\Beta\AppData\Local\Microsoft\GameDVR\KnownGameList.mp4' [i] [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\Beta\AppData\Local\Mozilla\Firefox\Profiles\xt0re6qj.default-release\startupCache\scriptCache-child-current.bin' -> 'C:\Users\Beta\AppData\Local\Mozilla\Firefox\Profiles\xt0re6qj.default-release\startupCache\scriptCache-child-current.mp4' [i] [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\Beta\AppData\Local\Mozilla\Firefox\Profiles\xt0re6qj.default-release\startupCache\scriptCache-current.bin' -> 'C:\Users\Beta\AppData\Local\Mozilla\Firefox\Profiles\xt0re6qj.default-release\startupCache\scriptCache-current.mp4' [i] [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\Beta\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\TempState\TileCache_125_3_PNGEncoded_Data.bin' -> 'C:\Users\Beta\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\TempState\TileCache_125_3_PNGEncoded_Data.mp4' [i] [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\Beta\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\TempState\TileCache_125_3_PNGEncoded_Header.bin' -> 'C:\Users\Beta\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\TempState\TileCache_125_3_PNGEncoded_Header.mp4' [i] [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\Beta\AppData\Local\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TempState\TileCache_100_3_PNGEncoded_Data.bin' -> 'C:\Users\Beta\AppData\Local\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TempState\TileCache_100_3_PNGEncoded_Data.mp4' [i] [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\Beta\AppData\Local\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TempState\TileCache_100_3_PNGEncoded_Header.bin' -> 'C:\Users\Beta\AppData\Local\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TempState\TileCache_100_3_PNGEncoded_Header.mp4' [+] File name sanitation completed

barakagb commented 2 years ago

Hi @Beta1o , i would need to replicate the problem on my end . Kindly share with me privately the cookies to the course.

Beta1o commented 2 years ago

Hi @Beta1o , i would need to replicate the problem on my end . Kindly share with me privately the cookies to the course. how I can share it privately ?

barakagb commented 2 years ago

DM via email.

Beta1o commented 2 years ago

Kindly share your email with me.

Beta1o commented 2 years ago

Done. I sent it to you.