ammeysaini / udemy-paid-courses-grabber Goto Github PK
View Code? Open in Web Editor NEWScript to grab all udemy paid courses with coupons and add them to your udemy account automatically
License: MIT License
Script to grab all udemy paid courses with coupons and add them to your udemy account automatically
License: MIT License
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
Hi,
Appreciate if you can add the ability to run the script by providing username and password from an input file. Every time we need to run the script we have to log in to the Udemy account update the access token in the cookie file.
If we can run with username and password, this can be automated very easily.
Thanks!
Traceback (most recent call last):
File "C:\Users\AN515-55\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\browser_cookie3_init_.py", line 267, in load
cur.execute('SELECT host_key, path, secure, expires_utc, name, value, encrypted_value '
sqlite3.OperationalError: no such column: secure
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\AN515-55\OneDrive\Máy tính\Discounted-Udemy-Course-Enroller-master\udemy.py", line 746, in
my_cookies, cookies = fetch_cookies()
File "C:\Users\AN515-55\OneDrive\Máy tính\Discounted-Udemy-Course-Enroller-master\udemy.py", line 340, in fetch_cookies
cookies = browser_cookie3.load(domain_name="www.udemy.com")
File "C:\Users\AN515-55\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\browser_cookie3_init_.py", line 626, in load
for cookie in cookie_fn(domain_name=domain_name):
File "C:\Users\AN515-55\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\browser_cookie3_init_.py", line 610, in edge
return Edge(cookie_file, domain_name, key_file).load()
File "C:\Users\AN515-55\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\browser_cookie3_init_.py", line 271, in load
cur.execute('SELECT host_key, path, is_secure, expires_utc, name, value, encrypted_value '
sqlite3.OperationalError: Could not decode to UTF-8 column 'encrypted_value' with text 'v102.����0�[�P��P�VA`���F=��Sh���h�'
It will be awesome if we can list all courses (or 'N' courses) that have a coupon code and print on console or store in txt. It will be handy for everyone then, to share the URLs with code applied.
The format I suggest is:
Course Name:
Duration:
Rating:
Link:
Thank you for this awesome script!
'NoneType' object has no attribute 'a'
Occurs only at online tutorials 3rd page
Invalid header value b'access_token=XTh7zjwcBM7NHgLSGuOxxxxxxxxxxxx; client_id=bd2565cb7b0c313f5e9baexxxxxxxxxxxxxxx4961e8db2\n' unknown error
Can you add this website?
https://comidoc.net/daily
$ python udemy.py --paid
File "udemy.py", line 90
print(fc + sd + '[' + fm + sb + '*' + fc + sd + '] ' + fr + str(index + 1), fy + sp1[0], end='')
^
SyntaxError: invalid syntax
Invalid header value b'access_token= ; client_id=
getting this error when trying to subscribe
After discudemy almost all the other websites get passed through and have no results/aren't working properly(you just see the total course number on every line) ; then the script just closes.
My suggestion:
Keep: discudemy
Add: https://yofreesamples.com/courses/free-discounted-udemy-courses-list/
Remove all the rest.
The above 2 websites together will rarely miss any coupon.
list index out of range
unknown error
How to fix cookie file does not exist error
Hi, great work, I dont get any error but script keeps trying to enroll the first link and it cant. I try with/without cookie and get the same result. Thanks
it say Coupon Expired :( even for the ones that are still working
Please add the ability to enroll into multiple Udemy accounts. It would be great if the account cookie list can be provided through a text file.
C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\packages\urllib3\connectionpool.py:734: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
First of all nice project.👍
I am a security researcher too. We should keep in touch. 😉
Are you into bug bounty?
I found that some of the courses with the coupon are not signing up for me.
Not sure what the issue could be.
When I sign up for paid courses in my profile it always asks me to add the checkout details like country and state.
This could be one of the issue.
---->> 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'
please help to solve this error
Can We Login without cookie.txt
PS D:\Test\Udemy-Course-Grabber-master> python udemy.py -c cookie.txt
Exception in thread Thread-5:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2288.0_x64__qbz5n2kfra8p0\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2288.0_x64__qbz5n2kfra8p0\lib\threading.py", line 870, in run
self._target(*self._args, **self.kwargs)
File "udemy.py", line 310, in real_discount
soup = bs(r.content, 'html5lib')
File "C:\Users\Rajeev\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bs4_init.py", line 243, in init
raise FeatureNotFound(
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2288.0_x64__qbz5n2kfra8p0\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2288.0_x64__qbz5n2kfra8p0\lib\threading.py", line 870, in run
self._target(*self._args, **self.kwargs)
File "udemy.py", line 224, in discudemy
soup = bs(r.content, 'html5lib')
File "C:\Users\Rajeev\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bs4_init.py", line 243, in init
raise FeatureNotFound(
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?
Exception in thread Thread-3:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2288.0_x64__qbz5n2kfra8p0\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2288.0_x64__qbz5n2kfra8p0\lib\threading.py", line 870, in run
self._target(*self._args, **self.kwargs)
File "udemy.py", line 258, in udemy_freebies
soup = bs(r.content, 'html5lib')
File "C:\Users\Rajeev\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bs4_init.py", line 243, in init
raise FeatureNotFound(
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2288.0_x64__qbz5n2kfra8p0\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2288.0_x64__qbz5n2kfra8p0\lib\threading.py", line 870, in run
self._target(*self._args, **self.kwargs)
File "udemy.py", line 284, in tutorialbar
soup = bs(r.content, 'html5lib')
File "C:\Users\Rajeev\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bs4_init.py", line 243, in init
raise FeatureNotFound(
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?
Hi there,
Let's say I already have a list of Udemy courses with coupons from this website below:
https://yofreesamples.com/courses/free-discounted-udemy-courses-list/
The URLs can be stored in a .txt file. I would like to use your script to automatically enroll in those courses. Is that possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.