2019更新-如何下載Udemy的線上課程(離線觀看)

先至 https://github.com/r0oth3x49/udemy-dl 下載zip檔案,並且解壓縮

僅作為測試,請勿非法使用

安裝

cd udemy-dl-master     #更換目錄至此資料夾pip install -r requirements.txt  #安裝udemy-dl

下載

cd udemy-dl-master     #每次下載前需cd至 udemy-dl-master目錄python udemy-dl.py https://www.udemy.com/XXXXX -q 720 -o "X:/"#從課程網址中,下載解析度720P的影片,並且儲存至指定的路徑資料夾#使用此程式需登入Udemy的帳號密碼-------------------------------------------------------------------

20190429更新

使用cookie進行登入:
python udemy-dl.py -k cookie.txt https://www.udemy.com/XXX -q 720 -o "G:/"
#透過cookie,從課程網址中,下載解析度720P的影片,並且儲存至指定的路徑資料夾

取出cookies

Extracting Cookies / Request HeadersLogin to your udemy account via browser.Once you are logged in right click on page the search for option called Inspect Element and click on that.Under that look for Network Tab and click on that. Under that Network Tab click on Requests type XHR .Now click on My Courses in the Udemy navbar and refresh the page you will see some requests under Network Tab.Right click on request links to udemy.com/api-2.0/. Simply copy Request Headers and save to text file.The above guide is for Firefox users. Chrome Users can follow guide by @lamlephamngoc.Done run the udemy-dl against that text file it will start downloading the course.

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store