AmmeySaini / Udemy-Paid-Courses-Grabber

Script to grab all udemy paid courses with coupons and add them to your udemy account automatically
MIT License
187 stars 103 forks source link

Invalid Header Value Error #5

Closed yashraj22 closed 4 years ago

yashraj22 commented 4 years ago

hello@hello2-Vostro-3558:~/Udemy-Paid-Courses-Grabber$ python3 udemy.py -c cookie.txt


| | | (__ \ (___) _ | | | | / | ( ) | | | | | | | \ \ ____ | | _ | | |_| | | / ___) )/| | | | | | | | | | ) | || || |\/ | | | __//__)|| | || | |/ /| |____| || || | | _| | |_ | ____|_/ |___)||||_| () ____)| (__/||_|

[*] Trying to login with cookies!

[*] Login Successful!

[*] Websites Available: Discudemy Udemy Freebies Udemy Coupons Real Discount Tricks Info Free Web Cart Course Mania Jojo Coupons Online Tutorials

---->> Want to see available coupons (INPUT "n") OR subscribe to all available courses automatically (input "y"): y

------->> Discudemy <<-------

LOADING URLS: [■■■■□□□□□□]

[*] 1 Facebook Dynamic Ads (Facebook Dynamic Retargeting) MASTERYInvalid header value b'access_token=my access_token was here; client_id=my client_id was here with a \n'

unknown error yashraj@yashraj-Vostro-3558:~/Udemy-Paid-Courses-Grabber$

for some reason '\n' is getting appended at last of client_id's value inside cookies dictionary, When I used a line of code (provided below) to remove that '\n' from client_id's value everything worked fine

`cookies['client_id'] = cookies['client_id'].strip('\n')`

I added this code below https://github.com/AmmeySaini/Udemy-Paid-Courses-Grabber/blob/master/udemy.py#L250 in file udemy.py

AmmeySaini commented 4 years ago

your cookie.txt file is not in right format

yashraj22 commented 4 years ago

@AmmeySaini I rechecked it correctly it was fine but will try again and tell you

AmmeySaini commented 4 years ago

send a screenshot of your cookie file

AmmeySaini commented 4 years ago

Closing this as no response from your end. You can open this anytime later.