If you have a collection of courses on Udemy and want to download for offline learning, take advantage of Google Colab to Download and archive. In this article I will guide you to Download Udemy course by Colab.
How to Download Udemy courses by Colab
What is Colab? This is a Google virtual server that helps students or programmers set up small projects related to machine learning and artificial intelligence. We can take advantage of the resources of the Google server to connect to Google Drive to download Udemy courses by Colab quickly.
According to my test, the speed is about 17Mb/s, so in a few minutes you can finish downloading a course.
Use Colab to Download Video Udemy as follows:
The condition to download Videos is that your Udemy account must own the course, if not, use Udemy Course Grabber to receive the Free course.
First, you need to download a notebook file that has preconfigured Udemy Download Courses function.
Now visit the Google Colab page and choose File -> Upload Notebook. Select File Udemy_Downloader.ipynb just downloaded earlier.
Next click on the triangle in the upper left corner to start running the code.
In the First Line will Donwload the Udemy Video download support libraries
The second code is to assign Google Drive to your Colab. After running the code, a Google link will appear. You click and allow to get the authorization Code. Then go back and paste Code into the box Enter your authorization code and press Enter
If successful, the message Mounted at /content/drive will be displayed
Next run the 3rd Code to move back to the udemy-dl directory
Now at the Finally, Run Below Cell After Filling All the Details section, you need to do the following:
On the browser, open a new tab to log into Udemy. Login successfully, press F12, select Application, look at the Menu on the left and choose Cookies -> Udemy. Look in the right pane, enter the word access in the Filter box to show the access token box, copy the code where Value
Return to the Google Colab tab, enter the information
- Course_Url: link the Udemy course you want to download
- Download_dir: leave it blank
- Access_Token: copy the code just got above
- Subtitle_lang: to default
- Quality: 720
Click the Triangle button in the upper corner to start Download Udemy with Colab.
Wait a moment and you will see the udemy-dl interface appear and the information of the lessons downloaded.
To view the downloaded directory, open Google Drive to view or look through the left window of Colab, click on the folder icon and select udemy-dl and you will see the video and sub of Udemy lessons are saved here.
Now from Google Drive you can download to your computer and learn Offline.