I realized this script with nodejs and selenium. I created this program because I had several free course offered for udemy and I had the laziness to grab them by hand. I wrote all the urls of the free courses in one file. Then I realized this script that reads the file and adds each of the file's courses to my udemy account. You can see file example in examplefile.txt.
At first, I realized this only for my personal use then I think that it would be cool to share it with others.
npm install -g add-free-course-udemy
If you encounter an error on windows, do :
npm install -g windows-build-tools
npm install -g add-free-course-udemy
Execute this code in the same folder as the file to be read
Usage
$ add-free-course-udemy
MIT © Nacim Goura