A python command line tool for downloading lecture recordings, with order.
pip install urllib
pip install beautifulsoup4
apt-get install curl # ubuntu
brew install curl # os x
Install Linux # windows
-
Go to NTULearn, click one of your courses
-
On the left of the page, select "Recorded Lectures"
-
Find the RSS feed for this course:
For example: 15S2-CE3006-CPE301-DIGITAL COMMUNICATIONS MP4 Podcast Press "Get the RSS feed"
-
Copy the URL of this page.
It should be in a format like http://presentur.ntu.edu.sg/podcast/rss/rss5456_2.xml
Please pay attention that you should copy url that ends with "_2.xml". This is for mp4 recording.
-
Run the following command in your terminal
python3 get_video.py http://presentur.ntu.edu.sg/podcast/rss/rss5456_2.xml
The progress will be shown. It may take quite a long time.
Or you could run as the command in silence
python3 get_video.py http://presentur.ntu.edu.sg/podcast/rss/rss5456_2.xml > /dev/null &
You can rename the file by editing the code
Or you can use the following command. (Just for your information)
rename 's/(\d+)\s[\w\-\s]+/nameyouwang\ $1/' *.mp4