Jayapraveen / INE-courses-downloader

Python Script to download coures from INE.com website for personal and educational use
GNU General Public License v3.0
39 stars 19 forks source link

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

Open brattip opened 3 years ago

brattip commented 3 years ago

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:~# 
telus-beep commented 3 years ago

I am having same error.

telus-beep commented 3 years ago

Will someone fix this issue before my subscription expires ??

vikdean commented 3 years ago

Same thing here, whatever I enter, it doesn't work.

telus-beep commented 3 years ago

not sure when will he look into this and fix it, the case was opened 15 days ago but no action taken by the Code Developer so far :(

vikdean commented 3 years ago

If you take out the subscription check, it works:

        elif(choice == 2):
            choice = int(input("Please enter the number corresponding to the course you would like to download\n"))
            course = all_courses[choice]
            #if(course["access"]["related_passes"][pass_index_value]["name"] in access_pass):
            downloader(course)
            #else:
            #    exit("You do not have the subscription/pass to access to this course")

You can do the same for the other options. I know its not optimal, but still...

telus-beep commented 3 years ago

no it does not work, I don't see that subscription error anymore. It takes the option and exits out.

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 10

C:\Users\t940908\Desktop\INE-courses-downloader>

vikdean commented 3 years ago

Not sure why it isn't working for you, but beside adding a Python shebang to the first line, I commented out those lines and modified the indentation for the downloader(course) line; that's it. Haven't done anything else.

telus-beep commented 3 years ago

My bad, I overlooked your edited lines and didn't notice the indentation. I am not a python or scripting guy.

But it works now, thanks a lot 👍

abdikanipd commented 3 years ago

@vikdean I have same issue after i selected the course just that message will appear, any solution thanks.

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 3 You do not have the subscription/pass to access to this course

abdikanipd commented 3 years ago

Not sure why it isn't working for you, but beside adding a Python shebang to the first line, I commented out those lines and modified the indentation for the downloader(course) line; that's it. Haven't done anything else.

Thanks also

telus-beep commented 3 years ago

Now I get this new error

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) 843 Server doesn't support HEAD.

abdikanipd commented 3 years ago

just fellow @vikdean steps or delete Ine_tokens

telus-beep commented 3 years ago

Hi @vikdean ( any fix for this error ) ??

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 think the problem is '1. Access Control : Network' ( : ) that character not allowed as name of the folder.

telus-beep commented 3 years ago

@dexter101010 any help will appreciated..