udemy-enroller


Nameudemy-enroller JSON
Version 4.1.4 PyPI version JSON
download
home_pagehttps://github.com/aapatre/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE
Summary
upload_time2024-02-21 13:49:41
maintainer
docs_urlNone
authoraapatre
requires_python>=3.8,<4.0
license
keywords udemy education enroll
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            [![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/it-works-why.svg)](https://forthebadge.com)

* Udemy Coupon Grabber & Course Enroller: Grab FREE Coupons!
<br/>

Do you want to LEARN NEW STUFF for FREE? Don't worry, with the power of
web-scraping and automation, this script will find the necessary Udemy Coupons
&amp; enroll you to PAID UDEMY COURSES, ABSOLUTELY FREE!

**NOTE: THIS PROJECT IS NOT AFFILIATED WITH UDEMY.**

**NOTE: THIS PROJECT WILL NOT WORK WITH NON ENGLISH UDEMY.**

<br/>

The code scrapes course links and coupons from:

 - [tutorialbar.com](https://tutorialbar.com)
 - [discudemy.com](https://discudemy.com)
 - [coursevania.com](https://coursevania.com)
 - [freebiesglobal.com](https://freebiesglobal.com)
 - [idownloadcoupon.com](https://idownloadcoupon.com) -> _New_


In case of any bugs or issues, please open an issue in github. Also, don't forget to **Fork & Star the repository if you like it!**

**We are also on _[GitLab](https://gitlab.com/the-automators/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE)_**
<br/><br/>

## Video Proof:

[![Udemy Auto-Course-Enroller](https://img.youtube.com/vi/tdLsVoraMxw/0.jpg)](https://www.youtube.com/watch?v=tdLsVoraMxw "GET Udemy Courses for FREE with Python | 2 Minute Tuesday")

---

## Disclaimer & WARNINGS:

&emsp; 1. Use this ONLY for **Educational Purposes!** By using this code you agree that 
   **I'm not responsible for any kind of trouble** caused by the code. **THIS PROJECT IS NOT AFFILIATED WITH UDEMY.** 
   <br/>
&emsp; 2. **Make sure web-scraping is legal in your region.**
   <br/>
&emsp; 3. This is **NOT a hacking script**, i.e., it can't enroll you for a specific
   course! Instead it finds courses that provide coupon links to make the
   transaction free and then LEGALLY enroll you to the course!

---

## Requirements:

### How to Install the Requirements?

&emsp; __Required Python version:__ [Python 3.8+](https://www.python.org/downloads/)

&emsp; __(Windows users only) Required Microsoft Visual C++ 14.0+ version:__ [Microsoft Visual C++ 14.0+](https://visualstudio.microsoft.com/visual-cpp-build-tools/)

![alt text](https://docs.microsoft.com/answers/storage/attachments/34873-10262.png)

&emsp; __You must have pip or poetry installed. Please look up how to install them in your OS.__

Download a release of this project or clone the repository then navigate to the
folder where you placed the files on. Type `pip install -r requirements.txt` to
get all the requirements installed in one go. Similar instructions applies for poetry.

---

## Instructions

Props to Davidd Sargent for making a super simple video tutorial. If you prefer written instructions then continue reading further, else click on the image below for a quick video tutorial:

[![GET Udemy Courses for FREE with Python | 2 Minute Tuesday](https://i.ytimg.com/vi/6HLbqM-598k/hq720.jpg)](https://www.youtube.com/watch?v=6HLbqM-598k "pip installation of Automatic Udemy Course Enroller")

1 . Install from PyPI `pip install udemy-enroller`

-   Run the script and the cli will guide you through the settings required.
-   If you decide to save the settings they will be stored in your home directory: <br>
    **Windows**:
    C:/Users/CurrentUserName/.udemy_enroller<br>
    **Linux**:
    /home/username/.udemy_enroller 
    **The values in settings.yaml should be in the same language as the site you are browsing on.**

<br/>

2 . The script can be passed arguments:

- `--help`: View full list of arguments available
- `--browser=<BROWSER_NAME>`: Run with a specific browser 
- `--discudemy`: Run the discudemy scraper only
- `--coursevania`: Run the coursevania scraper only
- `--tutorialbar`: Run the tutorialbar scraper only
- `--freebiesglobal`: Run the freebiesglobal scraper only
- `--idownloadcoupon`: Run the idownloadcoupon scraper only
- `--max-pages=<NUMBER>`: Max number of pages to scrape from sites before exiting the script (default is 5)
- `--delete-settings`: Delete existing settings file
- `--delete-cookie`: Delete the cookie file if it exists
- `--debug`: Enable debug logging 

<br/>


3 . Run the script in terminal with your target runner:

- `udemy_enroller`
- `udemy_enroller --browser=chrome`
- `udemy_enroller --browser=chromium` 

<br/>

4 . The bot starts scraping the course links from the first **All Courses** page
on [Tutorial Bar](https://www.tutorialbar.com/all-courses/page/1), [DiscUdemy](https://www.discudemy.com/all), [Coursevania](https://coursevania.com) and [FreebiesGlobal](https://freebiesglobal.com) and starts
enrolling you to Udemy courses. After it has enrolled you to courses from the
first page, it then moves to the next site page and the cycle continues.

-   Stop the script by pressing `ctrl+c` in terminal to stop the enrollment process. 

<br/>

5 . *[New]* At the end of process a detailed result is shown:

```
================== Run Statistics ==================

Enrolled:                   56
Unwanted Category:          0
Unwanted Language:          1
Already Claimed:            93
Expired:                    7
Total Enrolments:           1705
Savings:                    €2674.44
================== Run Statistics ==================
```

### Docker

Alternatively you can run the script in docker.

To build the image run:

```
docker build -t udemy_enroller .
```

After the build is finished you can run your container with one of the commands below (you can pass arguments as you would in the cli):

```
docker run -it udemy_enroller 
```

After you entered your login credentials and settings detach from the interactive mode by pressing the `Ctrl-P` followed by `Ctrl-Q`.

You can also create a `settings.yaml` file from the `sample_settings.yaml` and mount to the container with the command:

```
docker run -v $(pwd)/settings.yaml:/home/enroller/.udemy_enroller/settings.yaml udemy_enroller 
```



---

## FAQs

__1. Can I get a specific course for free with this script?__

&emsp; Unfortunately no, but let me assure you that you may be lucky enough to get a
particular course for free when the instructor posts its coupon code in order
to promote it. Also, over time you would build a library of courses by running
the script often and have all the required courses in your collection. In fact,
I made this course after completing a
[Python automation course](https://www.udemy.com/course/automate/) and [Selenium](https://www.selenium.dev/),
which of course I got for free! :)
<br/><br/>
 
__2. How does the bot work?__

&emsp; The bot retrieves coupon links from [Tutorial Bar](https://www.tutorialbar.com/all-courses/page/1), [DiscUdemy](https://www.discudemy.com/all) and [Coursevania](https://coursevania.com)'s lists to cut the prices and
then uses REST requests to authenticate and enroll to the
courses. Think of it this way: Epic Games & other clients like Steam provide you
a handful of games each week, for free; Only in this case, we need a coupon code
to make those courses free. <br/><br/>


__3. How frequently should you run the script?__

&emsp; Daily, at least once! I've painstakingly amassed over 4000
courses in the last four years! And out of those 4000, I've only paid for 4 of
these courses.

So, a mere **0.001%** of courses are **actually paid** in my collection!
Thankfully, you can get more than what I gathered in 4 years, in a matter of
weeks! 🙌🏻 <br/><br/>


__4. Why did I create this?__

&emsp; It used to be my daily habit to redeem courses and it was an extremely tedious
task that took around 15 minutes, for 10 courses. And then I suddenly got the
idea to automate it, after I found the automation course mentioned above. I bet,
it will save your precious time too! :) <br/><br/>


__5. The code compiles successfully, but it's taking too long to work! IS there any way to fix that?__

&emsp; Since we are heavily dependent on a third-party site to retrieve coupons links,
there may be issues when the site is down. Needless to mention the connectivity
issues too. If everything is working fine, you can see the courses being
retrieved in the Python console/shell, which may take a while. <br/><br/>


__6. Which is the best way to run the script?__

&emsp; It is recommended to run the script using your terminal and system python. <br/><br/>


__7. Which branch to commit against?__

&emsp; Pull request should be made on "_develop_" branch. <br/><br/>


__8. What's the roadmap?__

&emsp; Take a look at our [Roadmap here](https://github.com/aapatre/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE/projects/1) and help us on what you want or talk to us about your proposed changes. <br/><br/>


---

## Support & Maintenance Notice

By using this repo/script, you agree that the authors and contributors are under no obligation to provide support for the script and can discontinue it's development, as and when necessary, without prior notice.

---

## Supporters

### Jetbrains

[![JetBrains](https://i.imgur.com/h2R018M.jpg)](https://jetbrains.com/?from=udemy-free-course-enroller)

Thanks to [JetBrains](https://jetbrains.com/?from=udemy-free-course-enroller) for supporting us. They are the maker of world class IDE and developer tooling. If you think their product might help you, please support them.

### GitBook

[![GitBook](https://i.imgur.com/OkuB14I.jpg)](https://gitbook.com)

Thanks to [GitBook](https://gitbook.com) for supporting us. GitBook is the best place to track personal notes and ideas for teams. If you think their product might help you, please support them.

### GitLab

[![GitLab](https://i.imgur.com/aUWtSn4.png)](https://gitlab.com)

Thanks to [GitLab](https://gitlab.com) for supporting us. GitLab is one of the main code hosting and CI/CD providers out there. They support the open source community through their GitLab for [Open Source program](https://about.gitlab.com/solutions/open-source/). Please check them out.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/aapatre/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE",
    "name": "udemy-enroller",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "udemy,education,enroll",
    "author": "aapatre",
    "author_email": "udemyenroller@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/79/ab/1fec47973171027680e1b95f785023f563fb12ee3605b4e6a987eba271d0/udemy_enroller-4.1.4.tar.gz",
    "platform": null,
    "description": "[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)\n[![forthebadge](https://forthebadge.com/images/badges/it-works-why.svg)](https://forthebadge.com)\n\n* Udemy Coupon Grabber & Course Enroller: Grab FREE Coupons!\n<br/>\n\nDo you want to LEARN NEW STUFF for FREE? Don't worry, with the power of\nweb-scraping and automation, this script will find the necessary Udemy Coupons\n&amp; enroll you to PAID UDEMY COURSES, ABSOLUTELY FREE!\n\n**NOTE: THIS PROJECT IS NOT AFFILIATED WITH UDEMY.**\n\n**NOTE: THIS PROJECT WILL NOT WORK WITH NON ENGLISH UDEMY.**\n\n<br/>\n\nThe code scrapes course links and coupons from:\n\n - [tutorialbar.com](https://tutorialbar.com)\n - [discudemy.com](https://discudemy.com)\n - [coursevania.com](https://coursevania.com)\n - [freebiesglobal.com](https://freebiesglobal.com)\n - [idownloadcoupon.com](https://idownloadcoupon.com) -> _New_\n\n\nIn case of any bugs or issues, please open an issue in github. Also, don't forget to **Fork & Star the repository if you like it!**\n\n**We are also on _[GitLab](https://gitlab.com/the-automators/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE)_**\n<br/><br/>\n\n## Video Proof:\n\n[![Udemy Auto-Course-Enroller](https://img.youtube.com/vi/tdLsVoraMxw/0.jpg)](https://www.youtube.com/watch?v=tdLsVoraMxw \"GET Udemy Courses for FREE with Python | 2 Minute Tuesday\")\n\n---\n\n## Disclaimer & WARNINGS:\n\n&emsp; 1. Use this ONLY for **Educational Purposes!** By using this code you agree that \n   **I'm not responsible for any kind of trouble** caused by the code. **THIS PROJECT IS NOT AFFILIATED WITH UDEMY.** \n   <br/>\n&emsp; 2. **Make sure web-scraping is legal in your region.**\n   <br/>\n&emsp; 3. This is **NOT a hacking script**, i.e., it can't enroll you for a specific\n   course! Instead it finds courses that provide coupon links to make the\n   transaction free and then LEGALLY enroll you to the course!\n\n---\n\n## Requirements:\n\n### How to Install the Requirements?\n\n&emsp; __Required Python version:__ [Python 3.8+](https://www.python.org/downloads/)\n\n&emsp; __(Windows users only) Required Microsoft Visual C++ 14.0+ version:__ [Microsoft Visual C++ 14.0+](https://visualstudio.microsoft.com/visual-cpp-build-tools/)\n\n![alt text](https://docs.microsoft.com/answers/storage/attachments/34873-10262.png)\n\n&emsp; __You must have pip or poetry installed. Please look up how to install them in your OS.__\n\nDownload a release of this project or clone the repository then navigate to the\nfolder where you placed the files on. Type `pip install -r requirements.txt` to\nget all the requirements installed in one go. Similar instructions applies for poetry.\n\n---\n\n## Instructions\n\nProps to Davidd Sargent for making a super simple video tutorial. If you prefer written instructions then continue reading further, else click on the image below for a quick video tutorial:\n\n[![GET Udemy Courses for FREE with Python | 2 Minute Tuesday](https://i.ytimg.com/vi/6HLbqM-598k/hq720.jpg)](https://www.youtube.com/watch?v=6HLbqM-598k \"pip installation of Automatic Udemy Course Enroller\")\n\n1 . Install from PyPI `pip install udemy-enroller`\n\n-   Run the script and the cli will guide you through the settings required.\n-   If you decide to save the settings they will be stored in your home directory: <br>\n    **Windows**:\n    C:/Users/CurrentUserName/.udemy_enroller<br>\n    **Linux**:\n    /home/username/.udemy_enroller \n    **The values in settings.yaml should be in the same language as the site you are browsing on.**\n\n<br/>\n\n2 . The script can be passed arguments:\n\n- `--help`: View full list of arguments available\n- `--browser=<BROWSER_NAME>`: Run with a specific browser \n- `--discudemy`: Run the discudemy scraper only\n- `--coursevania`: Run the coursevania scraper only\n- `--tutorialbar`: Run the tutorialbar scraper only\n- `--freebiesglobal`: Run the freebiesglobal scraper only\n- `--idownloadcoupon`: Run the idownloadcoupon scraper only\n- `--max-pages=<NUMBER>`: Max number of pages to scrape from sites before exiting the script (default is 5)\n- `--delete-settings`: Delete existing settings file\n- `--delete-cookie`: Delete the cookie file if it exists\n- `--debug`: Enable debug logging \n\n<br/>\n\n\n3 . Run the script in terminal with your target runner:\n\n- `udemy_enroller`\n- `udemy_enroller --browser=chrome`\n- `udemy_enroller --browser=chromium` \n\n<br/>\n\n4 . The bot starts scraping the course links from the first **All Courses** page\non [Tutorial Bar](https://www.tutorialbar.com/all-courses/page/1), [DiscUdemy](https://www.discudemy.com/all), [Coursevania](https://coursevania.com) and [FreebiesGlobal](https://freebiesglobal.com) and starts\nenrolling you to Udemy courses. After it has enrolled you to courses from the\nfirst page, it then moves to the next site page and the cycle continues.\n\n-   Stop the script by pressing `ctrl+c` in terminal to stop the enrollment process. \n\n<br/>\n\n5 . *[New]* At the end of process a detailed result is shown:\n\n```\n================== Run Statistics ==================\n\nEnrolled:                   56\nUnwanted Category:          0\nUnwanted Language:          1\nAlready Claimed:            93\nExpired:                    7\nTotal Enrolments:           1705\nSavings:                    \u20ac2674.44\n================== Run Statistics ==================\n```\n\n### Docker\n\nAlternatively you can run the script in docker.\n\nTo build the image run:\n\n```\ndocker build -t udemy_enroller .\n```\n\nAfter the build is finished you can run your container with one of the commands below (you can pass arguments as you would in the cli):\n\n```\ndocker run -it udemy_enroller \n```\n\nAfter you entered your login credentials and settings detach from the interactive mode by pressing the `Ctrl-P` followed by `Ctrl-Q`.\n\nYou can also create a `settings.yaml` file from the `sample_settings.yaml` and mount to the container with the command:\n\n```\ndocker run -v $(pwd)/settings.yaml:/home/enroller/.udemy_enroller/settings.yaml udemy_enroller \n```\n\n\n\n---\n\n## FAQs\n\n__1. Can I get a specific course for free with this script?__\n\n&emsp; Unfortunately no, but let me assure you that you may be lucky enough to get a\nparticular course for free when the instructor posts its coupon code in order\nto promote it. Also, over time you would build a library of courses by running\nthe script often and have all the required courses in your collection. In fact,\nI made this course after completing a\n[Python automation course](https://www.udemy.com/course/automate/) and [Selenium](https://www.selenium.dev/),\nwhich of course I got for free! :)\n<br/><br/>\n \n__2. How does the bot work?__\n\n&emsp; The bot retrieves coupon links from [Tutorial Bar](https://www.tutorialbar.com/all-courses/page/1), [DiscUdemy](https://www.discudemy.com/all) and [Coursevania](https://coursevania.com)'s lists to cut the prices and\nthen uses REST requests to authenticate and enroll to the\ncourses. Think of it this way: Epic Games & other clients like Steam provide you\na handful of games each week, for free; Only in this case, we need a coupon code\nto make those courses free. <br/><br/>\n\n\n__3. How frequently should you run the script?__\n\n&emsp; Daily, at least once! I've painstakingly amassed over 4000\ncourses in the last four years! And out of those 4000, I've only paid for 4 of\nthese courses.\n\nSo, a mere **0.001%** of courses are **actually paid** in my collection!\nThankfully, you can get more than what I gathered in 4 years, in a matter of\nweeks! \ud83d\ude4c\ud83c\udffb <br/><br/>\n\n\n__4. Why did I create this?__\n\n&emsp; It used to be my daily habit to redeem courses and it was an extremely tedious\ntask that took around 15 minutes, for 10 courses. And then I suddenly got the\nidea to automate it, after I found the automation course mentioned above. I bet,\nit will save your precious time too! :) <br/><br/>\n\n\n__5. The code compiles successfully, but it's taking too long to work! IS there any way to fix that?__\n\n&emsp; Since we are heavily dependent on a third-party site to retrieve coupons links,\nthere may be issues when the site is down. Needless to mention the connectivity\nissues too. If everything is working fine, you can see the courses being\nretrieved in the Python console/shell, which may take a while. <br/><br/>\n\n\n__6. Which is the best way to run the script?__\n\n&emsp; It is recommended to run the script using your terminal and system python. <br/><br/>\n\n\n__7. Which branch to commit against?__\n\n&emsp; Pull request should be made on \"_develop_\" branch. <br/><br/>\n\n\n__8. What's the roadmap?__\n\n&emsp; Take a look at our [Roadmap here](https://github.com/aapatre/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE/projects/1) and help us on what you want or talk to us about your proposed changes. <br/><br/>\n\n\n---\n\n## Support & Maintenance Notice\n\nBy using this repo/script, you agree that the authors and contributors are under no obligation to provide support for the script and can discontinue it's development, as and when necessary, without prior notice.\n\n---\n\n## Supporters\n\n### Jetbrains\n\n[![JetBrains](https://i.imgur.com/h2R018M.jpg)](https://jetbrains.com/?from=udemy-free-course-enroller)\n\nThanks to [JetBrains](https://jetbrains.com/?from=udemy-free-course-enroller) for supporting us. They are the maker of world class IDE and developer tooling. If you think their product might help you, please support them.\n\n### GitBook\n\n[![GitBook](https://i.imgur.com/OkuB14I.jpg)](https://gitbook.com)\n\nThanks to [GitBook](https://gitbook.com) for supporting us. GitBook is the best place to track personal notes and ideas for teams. If you think their product might help you, please support them.\n\n### GitLab\n\n[![GitLab](https://i.imgur.com/aUWtSn4.png)](https://gitlab.com)\n\nThanks to [GitLab](https://gitlab.com) for supporting us. GitLab is one of the main code hosting and CI/CD providers out there. They support the open source community through their GitLab for [Open Source program](https://about.gitlab.com/solutions/open-source/). Please check them out.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "",
    "version": "4.1.4",
    "project_urls": {
        "Homepage": "https://github.com/aapatre/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE"
    },
    "split_keywords": [
        "udemy",
        "education",
        "enroll"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "19fb5e877627382bd63236e89c0cdbe5f28d83bf205f8caa493bc6902e550919",
                "md5": "97772fe807975a76f1db36b3e7229d9d",
                "sha256": "82e2c4e58af4731133644eb3d7cd1ae84a3d956a2daf17e95aade96e9be9a1de"
            },
            "downloads": -1,
            "filename": "udemy_enroller-4.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "97772fe807975a76f1db36b3e7229d9d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 45656,
            "upload_time": "2024-02-21T13:49:40",
            "upload_time_iso_8601": "2024-02-21T13:49:40.265294Z",
            "url": "https://files.pythonhosted.org/packages/19/fb/5e877627382bd63236e89c0cdbe5f28d83bf205f8caa493bc6902e550919/udemy_enroller-4.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "79ab1fec47973171027680e1b95f785023f563fb12ee3605b4e6a987eba271d0",
                "md5": "f4f78d1ba42b7503f74dedc96c40506e",
                "sha256": "242f9bff79503f34e2a127901cc7d899a4704e7dca610a18d8dc9226336f9cf5"
            },
            "downloads": -1,
            "filename": "udemy_enroller-4.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "f4f78d1ba42b7503f74dedc96c40506e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 41130,
            "upload_time": "2024-02-21T13:49:41",
            "upload_time_iso_8601": "2024-02-21T13:49:41.809830Z",
            "url": "https://files.pythonhosted.org/packages/79/ab/1fec47973171027680e1b95f785023f563fb12ee3605b4e6a987eba271d0/udemy_enroller-4.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-21 13:49:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aapatre",
    "github_project": "Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "lcname": "udemy-enroller"
}
        
Elapsed time: 2.43380s