An automation tool that reads Reddit posts from (r/udemyfreebies, r/udemyfreeebies, and r/udemyfreecourses) extracts course links from middleman websites, converts them into direct Udemy links with coupons, and automates the enrollment process into free courses.
Python 3.11+
A Chromium-based browser (sorted from best-supported to least):
Google Chrome is fully supported and recommended.
Brave Browser works but might break with newer Brave versions.
Create a Reddit bot and get environment variables
Click on create another app button at the bottom
Set name to Udemate
Select script
Set description to an appropriate description (e.g. repo description)
Set redirect uri to http://localhost:8080
📝 Note: It is preferable to use a Reddit account that doesn't have 2FA configured. If you have 2FA enabled for your Reddit account, the script will provide you with a link that you need to click on to generate a Reddit refresh token and authorize access.
Authenticates via refresh token for Reddit clients
Generates JSON files containing middleman links grouped by name
Scrapes intermediate links from the following middlemen:
Automates enrollment into Udemy courses
Caches processed Udemy links in JSONL file
Supports command-line arguments for specifying
mode (hybrid, headless, or GUI)
timeout for each spider and enrollment bot (in seconds)
retries for each spider and enrollment bot
Sends push notifications via a self-hosted Gotify server for informing the user about events occurring during each run
Built with