aapatre / Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE

Do you want to LEARN NEW STUFF for FREE? Don't worry, with the power of web-scraping and automation, this script will find the necessary Udemy coupons & enroll you for PAID UDEMY COURSES, ABSOLUTELY FREE!
GNU General Public License v3.0
3.14k stars 545 forks source link

[BUG]Unexpected exception: Malformed url passed #251

Closed abdulalief closed 3 years ago

abdulalief commented 3 years ago

Describe the bug Unexpected exception: Malformed url passed in: https://www.udemy.com/course/the-complete-ios-10-developer-course/

To Reproduce run the program as usual python udemy_enroller.py occasionally the error will occur on some of the links

Expected behavior should be auto enroll

Screenshots bug malformed url passed

Desktop (please complete the following information):

Additional context it looks like the bug appear when the course being open, are free courses on udemy should be auto enroll too.

cullzie commented 3 years ago

@abdulalief These Urls do not contain a discountCode hence we are raising an error that they are malformed. These courses are usually is FREE and the enroller currently only supports enrolling in paid courses which have a discount code to bring the price to Zero.

fakeid30 commented 3 years ago

@cullzie i think there is a scope to graciously handle this with better try catch block.

cullzie commented 3 years ago

@fakeid30 Ye it can be removed entirely. We can send it to a debug log since most people don't care about this happening or want to see it happening