• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Signup for 100+ Udemy courses in few minutes

You need to create it and add your access_token and client_id in it.
So the text file looks like access_token||client_id
thanks, brother but a something is missing in instructions like first (you have to install python?) them in cmd you paste the access token and client id ?
 
Hi @mmohamedyaser

Can you make a tutorial on how to add other website sources?
Currently, here's the Websites Available:
Discudemy
Udemy Freebies
Udemy Coupons
Real Discount
Tricks Info
Free Web Cart
Course Mania
Jojo Coupons
Online Tutorials

For e.g. I want the script to also scrape the following sites:
couponscorpion.com
100offdeal.online
udemyfreecourses.org
coursesity.com/provider/free/udemy-courses
www.guru99.com/free-udemy-course.htm
udemycoupons.me
www.onlinecourses.ooo
etc

Any help would be much appreciated.
Thanks for sharing this anyway :D
 
Hi @mmohamedyaser

Can you make a tutorial on how to add other website sources?
Currently, here's the Websites Available:
Discudemy
Udemy Freebies
Udemy Coupons
Real Discount
Tricks Info
Free Web Cart
Course Mania
Jojo Coupons
Online Tutorials

For e.g. I want the script to also scrape the following sites:
couponscorpion.com
100offdeal.online
udemyfreecourses.org
coursesity.com/provider/free/udemy-courses
www.guru99.com/free-udemy-course.htm
udemycoupons.me
www.onlinecourses.ooo
etc

Any help would be much appreciated.
Thanks for sharing this anyway :D

Hi @buggysite

Sure lets go step by step. Some sites use redirect which would not be easy to get the links(as the udemy url is not visible for python to grab, there is a way but its not straight forward). I took an example from one of the sites that you requested.

  1. First go to __constants/constants.py add in a new line after TRICKSINF.
  2. Insert this line -> ONLINECOURSES = "https://www.onlinecourses.ooo/page/".
  3. Insert 'onlinecourses.ooo', into total_sites array after 'Tricks Info'.
  4. Insert 5, in site_range after 5 elements. This is the number of pages that it will go through. Now it will go through 4 pages (given number -1).
  5. Next go to __functions/functions.py, this is the location for adding each page's function.
  6. Go to line 170 and paste the below. Will explain everything in comments.
  7. Python:
    def onlinecourses(page):
        links_ls = []
        
        head = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36',
        'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9'
        } # This is the headers used to send the request, this spoof's the website that you are a normal user ;)
        
        r = requests.get(ONLINECOURSES+ str(page), headers=head, verify=False) # this code uses the variable that we created in constants.py to send request to web server
        soup = BeautifulSoup(r.content, 'html.parser') # this code parses the page into html format for python to read
        all = soup.find_all('a', attrs={"rel": "bookmark", "title": True}) # this grabs all the links from that website which is about 10 links.
        
        for index, items in enumerate(all): # once grabbing of the links are complete, a for loop is created to loop between each link. Note: indent the below lines
            title = items.text #this variable takes the name of the course
            url2 = items['href'] #this takes the url of each course page (eg. https://www.onlinecourses.ooo/coupon/learn-how-to-build-an-ecommerce-website-using-wordpress/)
            r2 = requests.get(url2, headers=head, verify=False) # request is sent to web server for the above link
            sys.stdout.write("\rLOADING URLS: " + animation[index % len(animation)]) # Just for animation
            sys.stdout.flush() # Just for animation
            soup1 = BeautifulSoup(r2.content, 'html.parser') # now again the page is parsed
            link = soup1.find('div', 'link-holder').a['href'] # we are looking for the udemy url and saving it into the variable
            links_ls.append(title + '||' + link) # here we are saving each title and link to a list that will be used for signup next. Note: Indent ends here
        return links_ls # this returns the list to the function.
  8. All text after # is for comments
  9. Now open udemy.py in visual studio code or notepad++ or any text editor
  10. In line 24, press Enter after the comma
  11. Insert lambda page : onlinecourses(page), in the new line
  12. The next part is extra, for people who want to select the course manually.
  13. Find if site == 'Tricks Info':, paste the below code after the end of d+=1 and make sure the indents are placed properly.
  14. Python:
                        if site == 'onlinecourses.ooo':
                            limit = 8
                            print('\n' + fc + sd + '-------' + fm + sb + '>>' + fb +' Online Courses.ooo ' + fm + sb + '<<' + fc + sd + '-------\n')
                            while d <= limit:
                                list_st = onlinecourses(d)
                                site = process(list_st, d, limit, site_index, cookies, access_token, csrftoken, head)
                                d += 1

That should be it. Just run the code the same way as before. python3 udemy.py -c cookie.txt
 
Wohooo

Thank you very much for your comprehensive tutorial @mmohamedyaser
This is a very important tutorial for me and every one else to tweak the script.
Would be very useful for anyone else :D

Hi @buggysite

Sure lets go step by step. Some sites use redirect which would not be easy to get the links(as the udemy url is not visible for python to grab, there is a way but its not straight forward). I took an example from one of the sites that you requested.

  1. First go to __constants/constants.py add in a new line after TRICKSINF.
  2. Insert this line -> ONLINECOURSES = "https://www.onlinecourses.ooo/page/".
  3. Insert 'onlinecourses.ooo', into total_sites array after 'Tricks Info'.
  4. Insert 5, in site_range after 5 elements. This is the number of pages that it will go through. Now it will go through 4 pages (given number -1).
  5. Next go to __functions/functions.py, this is the location for adding each page's function.
  6. Go to line 170 and paste the below. Will explain everything in comments.
  7. Python:
    def onlinecourses(page):
        links_ls = []
       
        head = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36',
        'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9'
        } # This is the headers used to send the request, this spoof's the website that you are a normal user ;)
       
        r = requests.get(ONLINECOURSES+ str(page), headers=head, verify=False) # this code uses the variable that we created in constants.py to send request to web server
        soup = BeautifulSoup(r.content, 'html.parser') # this code parses the page into html format for python to read
        all = soup.find_all('a', attrs={"rel": "bookmark", "title": True}) # this grabs all the links from that website which is about 10 links.
       
        for index, items in enumerate(all): # once grabbing of the links are complete, a for loop is created to loop between each link. Note: indent the below lines
            title = items.text #this variable takes the name of the course
            url2 = items['href'] #this takes the url of each course page (eg. https://www.onlinecourses.ooo/coupon/learn-how-to-build-an-ecommerce-website-using-wordpress/)
            r2 = requests.get(url2, headers=head, verify=False) # request is sent to web server for the above link
            sys.stdout.write("\rLOADING URLS: " + animation[index % len(animation)]) # Just for animation
            sys.stdout.flush() # Just for animation
            soup1 = BeautifulSoup(r2.content, 'html.parser') # now again the page is parsed
            link = soup1.find('div', 'link-holder').a['href'] # we are looking for the udemy url and saving it into the variable
            links_ls.append(title + '||' + link) # here we are saving each title and link to a list that will be used for signup next. Note: Indent ends here
        return links_ls # this returns the list to the function.
  8. All text after # is for comments
  9. Now open udemy.py in visual studio code or notepad++ or any text editor
  10. In line 24, press Enter after the comma
  11. Insert lambda page : onlinecourses(page), in the new line
  12. The next part is extra, for people who want to select the course manually.
  13. Find if site == 'Tricks Info':, paste the below code after the end of d+=1 and make sure the indents are placed properly.
  14. Python:
                        if site == 'onlinecourses.ooo':
                            limit = 8
                            print('\n' + fc + sd + '-------' + fm + sb + '>>' + fb +' Online Courses.ooo ' + fm + sb + '<<' + fc + sd + '-------\n')
                            while d <= limit:
                                list_st = onlinecourses(d)
                                site = process(list_st, d, limit, site_index, cookies, access_token, csrftoken, head)
                                d += 1

That should be it. Just run the code the same way as before. python3 udemy.py -c cookie.txt
 
  • Like
Reactions: mmohamedyaser
Hi Everyone !

Quick update. My previous code might have stopped working.
I have updated the new script.
I have a git repo of the updated code and it seems to be functioning properly.
You can get the latest code in the below repo.

Enjoy ! ;)
hello, do these codes allow us to take paid courses from udemy?
 
[*] 8 Memory Leaks 101: Your Guide to Fixing Them in Web Appshttps://www.udemy.com/course/identify-and-fix-javascript-memory-leaks/?couponCode=0E877C81BBCA65BF6B17 Coupon Expired :( [*] 9 Print On Demand Masterclass - Shopify Store Creation in 2023https://www.udemy.com/course/print-on-demand-masterclass-shopify-store-creation-in-2022-course/?couponCode=PRINTONDEMAND23 Üst üste çok fazla istek yapıldı. Expected available in 2 seconds. ---->> Pausing execution of script for 12 seconds [*] 10 Mastering Architectural, Night & HDR Photographyhttps://www.udemy.com/course/mastering-architectural-night-hdr-photography/?couponCode=HDRAPR2023 Coupon Expired :( [*] 11 Introduction to International Trade Finance & Trade Serviceshttps://www.udemy.com/course/introduction-to-international-trade-finance-trade-services/?couponCode=FD529F9C571F0E3692DE Coupon Expired :( [*] 12 Management Consulting Presentation Essential Traininghttps://www.udemy.com/course/management-consulting-presentation-mckinsey/?couponCode=D542D1E39043D209D909 Coupon Expired :( [*] 13 Management Consulting Skills Masteryhttps://www.udemy.com/course/management-consulting-business-strategy/?couponCode=3AE2F67361A3746796B5 Coupon Expired :( [*] 14 Management Consulting Essential Traininghttps://www.udemy.com/course/management-consulting-problem-solving/?couponCode=40CF53A25B8BD1AA64B0 Coupon Expired :( [*] 15 Passive Income 5 Figures - Drop Servicing from Home 2023https://www.udemy.com/course/passive-income-5-figures-drop-servicing-from-home-2022-course/?couponCode=DROPSERVICING23 Coupon Expired :(

Why does it keep giving this warning?
Coupon Expired :(
 
1603300005907.png
I love automating things and I love programs that allow me to automate. ;)

What does this program do for me?
It grabs multiple coupons from sites like Discudemy, Real Discount etc and signs up in udemy for them automatically. ;)

Prerequisite:
Python for windows

  1. Run the below command to get Udemy paid coupon grabber.
  2. Once cloned cd into Udemy-Paid-Courses-Grabber-master.
  3. Next login to you udemy account in your browser(ie. chrome).
  4. Right click in udemy page and click Inspect element -> click application tab -> click in the left bar cookie -> https://www.udemy.com (forgot this step :p)
    1603302558142.png
  5. Create a cookie.txt file in the same folder (ie. Udemy-Paid-Courses-Grabber-master)
    image5.jpg
  6. Paste the access_token in cookie.txt and search for client_id in step 4.
  7. Paste client_id in the cookie.txt and save the file.
  8. To install all python requirements pip install -r requirements.txt
  9. Next run to signup in all the courses python3 udemy.py -c cookie.txt
If you are interested in signing up only the paid courses use the --paid parameter.


If you have any issues just ask me. Always here to help.:)

Credits to the creator: Ammey Saini

I have made some changes to the international version(USD).
If any users having issues using the indian version just ask.
Can you explain how we did it with a video?
 
[*] 8 Memory Leaks 101: Your Guide to Fixing Them in Web Appshttps://www.udemy.com/course/identify-and-fix-javascript-memory-leaks/?couponCode=0E877C81BBCA65BF6B17 Coupon Expired :( [*] 9 Print On Demand Masterclass - Shopify Store Creation in 2023https://www.udemy.com/course/print-on-demand-masterclass-shopify-store-creation-in-2022-course/?couponCode=PRINTONDEMAND23 Üst üste çok fazla istek yapıldı. Expected available in 2 seconds. ---->> Pausing execution of script for 12 seconds [*] 10 Mastering Architectural, Night & HDR Photographyhttps://www.udemy.com/course/mastering-architectural-night-hdr-photography/?couponCode=HDRAPR2023 Coupon Expired :( [*] 11 Introduction to International Trade Finance & Trade Serviceshttps://www.udemy.com/course/introduction-to-international-trade-finance-trade-services/?couponCode=FD529F9C571F0E3692DE Coupon Expired :( [*] 12 Management Consulting Presentation Essential Traininghttps://www.udemy.com/course/management-consulting-presentation-mckinsey/?couponCode=D542D1E39043D209D909 Coupon Expired :( [*] 13 Management Consulting Skills Masteryhttps://www.udemy.com/course/management-consulting-business-strategy/?couponCode=3AE2F67361A3746796B5 Coupon Expired :( [*] 14 Management Consulting Essential Traininghttps://www.udemy.com/course/management-consulting-problem-solving/?couponCode=40CF53A25B8BD1AA64B0 Coupon Expired :( [*] 15 Passive Income 5 Figures - Drop Servicing from Home 2023https://www.udemy.com/course/passive-income-5-figures-drop-servicing-from-home-2022-course/?couponCode=DROPSERVICING23 Coupon Expired :(

Why does it keep giving this warning?
Coupon Expired :(
Most of the coupons get expired as the author of the course choses to disable them once say 3000 students join a particular course. The number 3000 is just an example could be more or less.
 
Most of the coupons get expired as the author of the course choses to disable them once say 3000 students join a particular course. The number 3000 is just an example could be more or less.
i try manuel, it is working. but not work automation
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock