Git Product home page Git Product logo

ine-courses-downloader's People

Contributors

deepsourcebot avatar jayapraveen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ine-courses-downloader's Issues

Lab Function doesn't work at all

Hello community, I've used this script 2 months ago all things are fine it was downloaded everything.
Now I use the same script same code but it shows me errors, or it can download a lab page with nothing on & no Data File which must contain images and files and the HTML file name not (index) but it came with the same lab name while nothing on the page.

Is there any who faces the same problem? I think this is because INE has change their labs I've tried a lot but nothing happens every time another error shows.

Heeelp pleaaase ..:(

File "C:\Users\USER\Desktop\INE-courses-downloader-master\Ine.py", line 768, in
downloader(course)
File "C:\Users\USER\Desktop\INE-courses-downloader-master\Ine.py", line 627, in downloader
download_lab(k["uuid"], lab_index)
File "C:\Users\USER\Desktop\INE-courses-downloader-master\Ine.py", line 339, in download_lab
subfolder_name = 'Lab'+str(lab_index)+'.'+data["name"]
KeyError: 'name'

Lab function:

def download_lab(uuid, lab_index):

# content meta
host="content-api.rmotr.com"
header = {"Host": host,"Origin": referer,"Authorization": access_token,"User-Agent": user_agent,"Accept": accept,"X-Requested-With": x_requested_with,"Accept-Encoding": accept_encodings,"sec-fetch-mode": sec_fetch_mode,"sec-fetch-dest": sec_fetch_dest,"Referer": referer}
out = requests.get(lab_url.format(uuid),headers = header)
data = json.loads(out.text)

# prepare subfolders
subfolder_name = 'Lab'+str(lab_index)+'.'+data["name"]
subfolder_name = subfolder_name.replace(':', '')
subfolder_name = subfolder_name.replace('\t', '')
if not os.path.exists(subfolder_name):
    os.makedirs(subfolder_name)
if not os.path.exists(subfolder_name+" "):
    os.makedirs(subfolder_name+" ")

# save lab description as html
save_path_wname = os.path.join(subfolder_name, 'index.html').replace('\\', '')
with open(save_path_wname, 'w', encoding='utf-8') as fp:
    html_out = data["description_html"]
    # replace external assets links
    link="https://assets.ine.com/cybersecurity-lab-images/"+uuid
    html_out=html_out.replace(link,"data")
    fp.write(str(html_out))  

# imageX.png
host="assets.ine.com"
header = {"Host": host,"Origin": referer,"Authorization": access_token,"User-Agent": user_agent,"Accept": accept,"X-Requested-With": x_requested_with,"Accept-Encoding": accept_encodings,"sec-fetch-mode": sec_fetch_mode,"sec-fetch-dest": sec_fetch_dest,"Referer": referer}
slide_number = 1
status = True
while status:
    out = requests.get(labimage_url.format(uuid,str(slide_number)), headers = header, stream=True)
    if (out.status_code == 200):
        with open(subfolder_name+"\data\image{}.png".format(str(slide_number)),'wb') as fp:
            shutil.copyfileobj(out.raw, fp)
        slide_number = slide_number + 1
    else:
        status = False

Will INE ban my account?

Pluralsight, and IT Pro TV bans account if they see high activity.
I am assuming you have did the site-rip (I think thats how u got the size that its 1.8TB), can u confirm that they did not ban your account?

β€œTemporary failure in name resolution”

Im always getting this kind of error when downloading a course, ive tried 3 times and the download progress was never completed. Anyone who got an idea, please help!!!
Im running on Kali 2021.2

New Subscription added to INE

Hi broo's INE start's a new 7 day trial subscription, please Include it in the Script Couse now I can't download any course

How do I run the scrip

can someone guide me how do I run the script in windows 10 machine.

I have python 3.8 installed in the system.

Script problem.

Traceback (most recent call last):
File "Ine.py", line 458, in
downloader(course)
File "Ine.py", line 341, in downloader
download_video(out[1],out[0])
File "Ine.py", line 258, in download_video
video = requests.get(url, stream=True)
File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 519, in request
prep = self.prepare_request(req)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 452, in prepare_request
p.prepare(
File "/usr/lib/python3/dist-packages/requests/models.py", line 313, in prepare
self.prepare_url(url, params)
File "/usr/lib/python3/dist-packages/requests/models.py", line 387, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '0': No schema supplied. Perhaps you meant http://0?

Script isn't working anymore

I tried to run the script many times everytime it shows another error, Can you check if you must change something likr modules or logging autoinfection code.

With thanks

jsonDecoder issue

i just wanted to download courses from INE, and here is the error i got.

do you have any idea?

thanks for your time πŸ˜€

Logged in to INE as Corporate User with [email protected]

Choose Method Of Operation:
1.Site Rip
2.Select Individual Course
1
Traceback (most recent call last):
  File "c:/Users/Daniel/Desktop/ine/INE-courses-downloader/Ine.py", line 277, in <module>
    all_courses = total_courses()
  File "c:/Users/Daniel/Desktop/ine/INE-courses-downloader/Ine.py", line 182, in total_courses
    all_courses = json.loads(course_handler.readline())
  File "c:\users\daniel\appdata\local\programs\python\python38\Lib\json\__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "c:\users\daniel\appdata\local\programs\python\python38\Lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "c:\users\daniel\appdata\local\programs\python\python38\Lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

No longer works, please fix

Warning! Until the script completes execution do not access INE website or mobile app
as it might invalidate the session!

Cloud
Data Science
Development
IT Essentials
Networking
Cyber Security
Choose Method Of Operation:
1.Site Rip
2.Select Individual Course

Choose Preferred Video Quality
1.1080p
2.720p
2
Choose Method Of Selecting Course
1.Enter url
2.Choose from the above listed course
2
Please enter the number corresponding to the course you would like to download
127
Traceback (most recent call last):
File "Ine.py", line 461, in
if(course["access"]["related_passes"][0]["name"] in access_pass):
TypeError: argument of type 'NoneType' is not iterable

Slash "/" character in files fails

If the video file has a slash in the title then the script will fail due to max retries.

Examples "225. Host & Network Penetration Testing: System/Host Based Attacks"
The trailer fails due to this issue.

Error when attempting to download any course

Error message displayed when trying to download any course. Using latest version of Ine.py as of 22/03/2021.
Thanks.

Total 836 courses

Choose Preferred Video Quality
1.Highest Available Quality (1080p)
2.Next To Highest Quality (720p)
1
Choose Method Of Selecting Course
1.Enter url
2.Choose from the above listed course
3.Download a select number of courses from the above list
4.Download a bunch of courses from the above list using a range
2
Please enter the number corresponding to the course you would like to download
69
Traceback (most recent call last):
  File "Ine.py", line 478, in <module>
    if(course_has_access(course)):
  File "Ine.py", line 128, in course_has_access
    return boolean
UnboundLocalError: local variable 'boolean' referenced before assignment

List index out of range - unable to download

Error when downloading, I’ve tried with a couple courses (65,89,400 and 835) but same error. Running latest version (27916ea) this morning

Total 836 courses

Choose Preferred Video Quality
1.1080p
2.720p
1
Choose Method Of Selecting Course
1.Enter url
2.Choose from the above listed course
2
Please enter the number corresponding to the course you would like to download
834

Traceback (most recent call last):
File "Ine.py", line 470, in
if(course["access"]["related_passes"][4]["name"] in access_pass):
IndexError: list index out of range

Thank you

Download speed

Hi Jayapraveen,

Download speed with is if very slow. and also when it download it also don't show download speed and progress. Request you can you fix it.

Thanks

mkdir OS Error

Can some one fix this issue

Downloading: 1.Introduction to Monitoring, Strategy and Culture_mp4-hd.mp4: 100%|β–ˆ| 1.00/1.00 [00:02<00:0
Downloading: 5.5_ Leadership Principles_mp4-hd.mp4: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5.00/5.00 [01:00<00:00, 12.0s/videofile]
Downloading: Monitoring & Quality Assurance: 0%| | 0.00/1.00 [01:02<?, ?course/s]
Traceback (most recent call last):
File "Ine2.py", line 479, in
downloader(course)
File "Ine2.py", line 352, in downloader
os.makedirs(subfolder_name)
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
OSError: [Errno 22] Invalid argument: '3.Lab 1: Managing Technical Debt with SonarQube'

[Question] Iframe slides download ?

Do you know how to rip the slides in html format (created by iSpring) embedded in iframe as well?

The slides has Next button and lazily load the contents. Do you have any idea on how to download these?

Not listing all courses

Not every course is listed on the all_courses list. For example

Machine Learning Fundamentals

is not available. Is there a workaround?

scripts closes automatically

After choosing the course number where the scripts asks to enter the course number for download, I put in the course number for eg 1 and hit enter.

Then the script closes automatically.

Different access_pass captions for the courses

course["access"]["related_passes"][0]["name"] does not longer match the gathered strings in access_pass.

Some new captions are for example "B2B Enterprise" or "B2C Premium" as seen in all_courses.

Manipulating the script by changing line 458 from

if(course["access"]["related_passes"][0]["name"] in access_pass):

to

if(course["access"]["related_passes"][0]["name"] == "B2B Enterprise"):

will only download the video material of the course.

Can't get access it says "NameError: name 'access_token' is not defined"

Hi, could you help me with your script please, i've got an error after trying to run the script, credentials were right but i've got an error:

Warning! Until the script completes execution do not access INE website or mobile app
as it might invalidate the session!

Traceback (most recent call last):
File "D:\git\INE-courses-downloader\Ine.py", line 652, in
access_pass = pass_validator()
File "D:\git\INE-courses-downloader\Ine.py", line 189, in pass_validator
header = {"Host": host,"Origin": referer,"Authorization": access_token,"User-Agent": user_agent,"Accept": accept,"X-Requested-With": x_requested_with,"Accept-Encoding": accept_encodings,"sec-fetch-mode": sec_fetch_mode,"sec-fetch-dest": sec_fetch_dest,"Referer": referer}
NameError: name 'access_token' is not defined

You do not have the subscription/pass to access to this course

I have full site access to the INE courses, but this script keeps saying no subscription. No matter what option I try.

Choose Preferred Video Quality
1.Highest Available Quality (1080p)
2.Next To Highest Quality (720p)
1
Choose Method Of Selecting Course
1.Enter url
2.Choose from the above listed course
3.Download a select number of courses from the above list
4.Download a bunch of courses from the above list using a range
4
Enter the starting course number(Inclusive)
0
Enter the closing course number(Inclusive)
863
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
You do not have the subscription/pass to access to this course
Traceback (most recent call last):
File "Ine.py", line 714, in
if(course_has_access(course)):
File "Ine.py", line 151, in course_has_access
return boolean
UnboundLocalError: local variable 'boolean' referenced before assignment

=============================================================================

  1. CCIE R&S Advanced Technologies Class Version 4.5
    Total 864 courses

Choose Preferred Video Quality
1.Highest Available Quality (1080p)
2.Next To Highest Quality (720p)
1
Warning! This is a high compute and throughput functionality and needs
lots and lots of compute time and storage space
Enter "I agree" to acknowledge and proceed!
I agree

Initializing for Site dump

0%| | 0/1 [00:00<?, ?it/s]
Courses to be downloaded this batch: 0 to 1
Course not in subscription access pack. Skipping ..

Course batch successfully completed downloading.. Starting Next batch..

Courses to be downloaded this batch: 1 to 2 | 0/1 [00:00<?, ?it/s]
Course not in subscription access pack. Skipping ..

Course batch successfully completed downloading.. Starting Next batch..

Courses to be downloaded this batch: 2 to 3
Course not in subscription access pack. Skipping .. | 0/1 [00:00<?, ?it/s]

Course batch successfully completed downloading.. Starting Next batch..

Courses to be downloaded this batch: 3 to 4
Course not in subscription access pack. Skipping ..
0%| | 0/1 [00:00<?, ?it/s]
Course batch successfully completed downloading.. Starting Next batch..

Courses to be downloaded this batch: 4 to 5
Course not in subscription access pack. Skipping ..

Script is not running

after downloading and running the script for first time, I get

File "Ine.py", line 425 p.map(downloader,(all_courses[j] for j in range(i, this_session) if (False if (len(all_courses[j]["access"]["related_passes"]) == 0) else True if (all_courses[j]["access"]["related_passes"][0]["name"] in access_pass) else False) and 1 or print("Course not in subscription access pack. Skipping .."))) ^ SyntaxError: invalid syntax ^

                                                                                                                                                                                                                                                  any help would be appreciated 

Video download - Token expired. Trying to refresh error

Error when downloading any course:

Please enter the number corresponding to the course you would like to download
235

Downloading: Windows Red Team Lab: 0%| | 0.00/1.00 [00:00<?, ?course/sNo access to video metadata; | 0.00/1.00 [00:00<?, ?videofile/s]
Token expired. Trying to refresh ..
0%| | 0.00/1.00 [00:02<?, ?videofile/s]
Downloading: Windows Red Team Lab: 0%| | 0.00/1.00 [00:02<?, ?course/s]
Traceback (most recent call last):
File "/Users/user/INE-courses-downloader/Ine.py", line 693, in
downloader(course)
File "/Users/user/INE-courses-downloader/Ine.py", line 574, in downloader
out = get_meta(k["uuid"])
^^^^^^^^^^^^^^^^^^^
File "/Users/user/INE-courses-downloader/Ine.py", line 269, in get_meta
access_token_refetch()
File "/Users/user/INE-courses-downloader/Ine.py", line 129, in access_token_refetch
refresh_token = out["data"]["tokens"]["data"]["Refresh"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'Refresh'

Does anyone know how to fix this? I've done the other changes (thanks Ghost) to fix the refresh etc. but now hitting this error

The directory name is invalid:

Downloading: CiscoNetworkAccessSecurity: 0%| | 0.00/1.00 [00:00<?, ?course/s]
Traceback (most recent call last):
File "c:/Users/boy/INE-courses-downloader/Ine.py", line 479, in
downloader(course)
File "c:/Users/boy/INE-courses-downloader/Ine.py", line 352, in downloader
os.makedirs(subfolder_name)
File "C:\Users\boy\AppData\Local\Programs\Python\Python36-32\lib\os.py", line 220, in makedirs
mkdir(name, mode)
NotADirectoryError: [WinError 267] The directory name is invalid: '1.Access Control : Network'

I get that error I think the problem is '1. Access Control : Network' : that character not allowed as name of the folder.

Unable tu run. SyntaxError: invalid syntax. Line 444. v1.3.7

Hello.
Did python install on UBUNTU 18.14.5, did update, upgrade, dist-upgrade.
Got GIT CLONE from GITHUB, tryied to run, got this issue:

INE-courses-downloader$ python Ine.py
File "Ine.py", line 444
p.map(downloader,(all_courses[j] for j in range(i, this_session) if (False if (len(all_courses[j]["access"]["related_passes"]) == 0) else True if (course_has_access(all_courses[j])) else False) and 1 or print("Course not in subscription access pack. Skipping ..")))
^
SyntaxError: invalid syntax

KeyError: 'Refresh' Refresh token is not returned

I'm trying to use the script but I'm getting an Error: "KeyError: 'Refresh'"
printing login_data produces this which doesn't seem to have a Refresh field
private info hidden

Enter your Password:

{'data': {'id': '', 'username': '', 'customer_id': , 'email': '', 'origin': 'checkout.ine.com', 'links': {'rel': 'self', 'uri': '/users/'}, 'team_ids': [], 'suspended': False, 'account_id': '', 'mfa_required': False, 'mfa_method': None, 'subscriber_status': 'active', 'starter_opt_in_at': None, 'created_at': '2022-09-11', 'confirmed_at': '2022-09-11 ', 'is_confirmed': True, 'tokens':
 {'data': {'Bearer': ''}}, 'roles': {'data': [{'id': '', 'name': 'Customer', 'is_primary': 1}]}, 'profile': {'data': {'first_name': '', 'last_name': '', 'avatar': '', 'preferred_phone_number': None}}}}
Traceback (most recent call last):
  File "Ine.py", line 616, in <module>
    login()
  File "Ine.py", line 76, in login
    refresh_token = login_data["data"]["tokens"]["data"]["Refresh"]
KeyError: 'Refresh'

No Access to Video metadata

Hi,

I used the script before, with the modification which was suggested on the Issue, however suddenly stopped working and can't figure out why.

I've got the below error:

image

Do you have any solution for this?

Error charmap codec

Downloading course file: INE Cyber Security Pass - User Guide.pdf: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.00/1.00 [00:41<00:00, 42.0s/file]
33%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 1.00/3.00 [00:50<01:40, 50.4s/videofile]
Downloading: WindowsExploitDevelopment: 0%| | 0.00/1.00 [00:50<?, ?course/s]
Traceback (most recent call last):
File "C:\Users\Win10\INE-courses-downloader\Ine.py", line 728, in
downloader(course)
File "C:\Users\Win10\INE-courses-downloader\Ine.py", line 570, in downloader
download_slides(k["uuid"], slide_index)
File "C:\Users\Win10\INE-courses-downloader\Ine.py", line 408, in download_slides
fp.write(out.text)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\uf0e0' in position 1455: character maps to <

authentication issue

Hi bro,

It seems there is a problem with authentication. In browser it works with the same username and pass that i am using
in command prompt. But in command prompt i get this :

Enter your Username: [email protected]
Enter your Password:

Username or password is incorrect

Choose from the following options:
1.Relogin
2.Exit

And if i choose 1 , it exit.

Site rip and url download does not work to me at all

Hello,
im a newby in python. After downloading all files and install pyton this script does not work to me. I removed some lines from the code and works only the option to choose course parts. Id like to download courses by providing a url.
Can`t edit the srcipt in the right way. Still this option is not available to me.
Is there any chance to get some help ?

many thanks !

Error after putting correct user and passw

Traceback (most recent call last):
File "C:\Users\Win10\INE-courses-downloader\Ine.py", line 615, in
login()
File "C:\Users\Win10\INE-courses-downloader\Ine.py", line 75, in login
refresh_token = login_data["data"]["tokens"]["data"]["Refresh"]
KeyError: 'Refresh'

Access token entered is faulty

HI, again, after I've changed line refresh_token = login_data["data"]["tokens"]["data"]["Bearer"] I've got access, but after choosing 2 it just freeze, i have closed the window and reopened again and now i'm hitting this error:

access token entered is faulty. Check for and correct errors!

Should i wait for 4hrs to refresh the token or?

download does not work for courses with slides

Hi bro,

Here is what i get when i am trying to download a course that contain slides :

Downloading: PenetrationTestingWiFiSecurity: 0%| | 0.00/1.00 [01:06<?, ?course/s]
Traceback (most recent call last):
File "Ine.py", line 682, in
downloader(course)
File "Ine.py", line 557, in downloader
download_slides(k["uuid"], slide_index)
File "Ine.py", line 395, in download_slides
fp.write(out.text)
File "C:\Program Files\Python38\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\ufffd' in position 4059: character maps to

I am using win10.

In linux (kali linux) i get the following error when i am trying to use the script :

" File "Ine.py", line 647
p.map(downloader,(all_courses[j] for j in range(i, this_session) if (False if (len(all_courses[j]["access"]["related_passes"]) == 0) else True if (course_has_access(all_courses[j])) else False) and 1 or print("Course not in subscription access pack. Skipping ..")))
^
SyntaxError: invalid syntax
"

NameError: name 'access_token' is not defined

Every time I test the script I have this error :
Traceback (most recent call last):
File "C:\Users\Lenovo\Downloads\INE-courses-downloader-master\Ine.py", line 617, in
access_pass = pass_validator()
File "C:\Users\Lenovo\Downloads\INE-courses-downloader-master\Ine.py", line 187, in pass_validator
header = {"Host": host,"Origin": referer,"Authorization": access_token,"User-Agent": user_agent,"Accept": accept,"X-Requested-With": x_requested_with,"Accept-Encoding": accept_encodings,"sec-fetch-mode": sec_fetch_mode,"sec-fetch-dest": sec_fetch_dest,"Referer": referer}
NameError: name 'access_token' is not defined

List courses to download

Hi,
would it be possible to implement an option to not just download a single course, but define a list of course numbers (so e.g. instead of just "100", enter "100, 102, 152, 153"?

Thanks

Subtitles are not working

Hello. As you know the script downloads subtitles as a .srt file. K-lite codec or Windows Media Player do not detect subtitles. At the same time I have some videos from Udemy and subtitles work fine.
Any thoughts how to make it work?

Error on trying to run

I have tried to run from Linux and win10. python3.9.1
getting this

INE-courses-downloader $ python Ine.py
/home/ben/git/INE-courses-downloader/Ine.py:261: SyntaxWarning: "is" with a literal. Did you mean "=="?
if video.status_code is 200:
Traceback (most recent call last):
File "/home/ben/git/INE-courses-downloader/Ine.py", line 24, in
from tqdm import tqdm
ModuleNotFoundError: No module named 'tqdm'

Tried changing the "is" to == still did not work.

On win10 I got this error

Traceback (most recent call last):
File "C:\Users\Ben\Downloads\python\Ine.py", line 16, in
import requests
ModuleNotFoundError: No module named 'requests'

Issue download

every time I run script. Site Rip just says I don't have subscription pass to access to this course for every file. So I went to individual download of file. Select 1080p and course number. And I still get the can't download due to not having subscription. I can watch the videos if I log into INE so I know I have access. Anybody get this to work?

Not downloading course files

Hello,

So, I tried to download one of the course "Azure Pentesting" and it worked just I would expect. Everything downloaded perfectly.

I saw that there are course files attached to it which it did not download.

image

Is it expected behaviour?

Thank you for the tool.

KeyError: 'name'

Hi folks. I am getting the error 'KeyError: 'name' while trying to download "OSPF"(it's 42 in the courses list).
First of all I thought it's because of Windows machine where I run the script file. But attempt to run the script on a linux machine gave me the same error. Please help.

Downloading: OSPF: 0%| | 0.00/1.00 [00:03<?, ?course/s]
Traceback (most recent call last):
File "Ine.py", line 726, in
downloader(course)
File "Ine.py", line 585, in downloader
download_lab(k["uuid"], lab_index)
File "Ine.py", line 305, in download_lab
subfolder_name = 'Lab'+str(lab_index)+'.'+data["name"]
KeyError: 'name'

Very slow download speed via script

Hello, i'm currently downloading some files, those files not big at all and i'm using 200mbps/s to download 500MB it takes arround 15 minutes to download only 1 file. Can you explain why is that and maybe we can fix it?

Some courses cannot be downloaded

Hi bro ,

It seems that some courses cannot be downloaded. When i try to download a course it give me this error :

Please enter the number corresponding to the course you would like to download
63
Downloading course file: INE Cyber Security Pass - User Guide.pdf: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:05<00:00, 5.48s/it]
Downloading: MalwareAnalysis: 0%| | 0/1 [00:00<?, ?it/s]
0%| | 0/6 [00:00<?, ?it/s]Preferred video not available.
Inferior quality video is only available and it is chosen..

17%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 1/6 [00:01<00:07, 1.45s/it]
Downloading: MalwareAnalysis: 0%| | 0/1 [00:01<?, ?it/s]
Traceback (most recent call last):
File "Ine.py", line 461, in
downloader(course)
File "Ine.py", line 344, in downloader
download_video(out[1],out[0])
File "Ine.py", line 261, in download_video
video = requests.get(url, stream=True)
File "C:\Program Files\Python36\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\requests\sessions.py", line 516, in request
prep = self.prepare_request(req)
File "C:\Program Files\Python36\lib\site-packages\requests\sessions.py", line 459, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "C:\Program Files\Python36\lib\site-packages\requests\models.py", line 314, in prepare
self.prepare_url(url, params)
File "C:\Program Files\Python36\lib\site-packages\requests\models.py", line 388, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '0': No schema supplied. Perhaps you meant http://0?

Regards :)

Script does not work

after downloading and running the script for first time, I get

File "Ine.py", line 425 p.map(downloader,(all_courses[j] for j in range(i, this_session) if (False if (len(all_courses[j]["access"]["related_passes"]) == 0) else True if (all_courses[j]["access"]["related_passes"][0]["name"] in access_pass) else False) and 1 or print("Course not in subscription access pack. Skipping .."))) ^ SyntaxError: invalid syntax ^ ^

                                                                                                                                                                                                                                                  any help would be appreciated 

You do not have the subscription/pass to access to this course error

Hi,
I'm try to use your app, otherwise the system doesn't recognize my monthly pass ... can u check it?
from web site it works fine
let me know

Choose Preferred Video Quality
1.Highest Available Quality (1080p)
2.Next To Highest Quality (720p)
2
Choose Method Of Selecting Course
1.Enter url
2.Choose from the above listed course
3.Download a select number of courses from the above list
4.Download a bunch of courses from the above list using a range
2
Please enter the number corresponding to the course you would like to download
821
You do not have the subscription/pass to access to this course
root@ubuntu:~# 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.