Giter Club home page Giter Club logo

udemy-paid-courses-grabber's People

Contributors

ammeysaini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

udemy-paid-courses-grabber's Issues

Invalid Header Value Error

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

Enhancement: username password file instead of cookie file

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!

I need help about Unknow Error

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�'

image

Suggestion: Add option to just Print the course URL with coupon code

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!

unknown error

'NoneType' object has no attribute 'a'
Occurs only at online tutorials 3rd page

Unknown errror

Invalid header value b'access_token=XTh7zjwcBM7NHgLSGuOxxxxxxxxxxxx; client_id=bd2565cb7b0c313f5e9baexxxxxxxxxxxxxxx4961e8db2\n' unknown error

I'm Getting this Error?

$ 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

unknown error

Invalid header value b'access_token= ; client_id=

getting this error when trying to subscribe

Not enrolling

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

Some of the courses with coupon are not signing up

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.

Executed command

Browser page

INVALID HEADER VALUE [COOKIE METHOD]

---->> 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

Help

Can We Login without cookie.txt

Script does not work. I get the following error after running the script. It is stuck at the last line.

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.