New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed idownloadcoupon scraping #433
Conversation
Added a function named http_get_no_redirect that doesn't follow redirect and returns raw http response.
fixed idownloadcoupon scraping by handling manual link redirection.
Hi, |
Hey @samin-irtiza |
Hi @cullzie |
Hey @samin-irtiza, The problem at the moment is there are too many diffs showing in this PR meaning its hard to see the actual changes. |
@samin-irtiza Can you please tidy up this PR to only show changes you made. At the moment everything is showing up as changed. Thanks |
Hi @cullzie, I linted the code with black to tidy it up, but that seems to have caused more changes. Not sure what else I can do. |
আমার কাছে ঠিকই লাগছে, আশা করি কালজি আপনার চেঞ্জ অ্যাক্সেপ্ট করবে। @samin-irtiza |
Ok thanks @samin-irtiza |
Description
Fixed idownloadcoupon scraping by redirecting redeem button url manually and parsing the redirected udemy link with the coupon code.
Fixes #432
Type of change
Added a new function in http_utils.py called http_get_no_redirect that doesn't follow redirected url
Modified idownloadcoupon.py file and function called get_udemy_course_link. changed the url parsing code.
How Has This Been Tested?
python.exe run_enroller.py --idownloadcoupon
Checklist: