1. Open the course pages which are subject of interest in the Chrome (in separete tabs).
2. Save the session using FreshStart Chrome extension.
3. Export the session just saved.
4. FreshStart will give you a JSON like below:
6. Search for this regex (newlines added to adjust layout, delete them when using):
"title":"(?:MIT OpenCourseWare \| ([^\|]+) \| (\d+)\.\S+ ([^,]+),[^"]+|[^"]+\bResource\b [^"]+)","url":"http://ocw\.mit\.edu/(?:courses/([^/]+)/|resources/res-)(\d+-\w+)-([^/]+) -(spring|fall|\w+-iap)-(\d+)/
7. Use following replacement regex to generate links for courses:
8. Use following replacement regex to generate links for resources:
9. Simply copy both course and resource links and JDownloader automatically grab them from your clipboard. Then click "Continue with all" to start downloads.
10. After dowloads completed, you will obtain files that whose names consists of course code, semester and year:
You probably want to know human readable couse name, right? This was the main reason to use FreashStart. In this way, we obtained actual course names from page titles and will rename files with them:
6-046j-fall-2005 - Introduction to Algorithms (SMA 5503).zip
Use following replacement regex to generate proper renaming commands for courses:
ren \5-\7-\8.zip "\5-\7-\8 - \3.zip"
11. Unfortunately, we can not obtaine course name from the resource page titles like we do with courses:
Free Online Course Materials | Resource Home | MIT OpenCourseWare
But we can still obtain them from links, but in lowercase and dashes instead of spaces.
res-6-004-spring-2009 - principles-of-computer-system-design-an-introduction.zip
Use following replacement regex to generate proper renaming commands for resources:
ren res-\5-\7-\8.zip "res-\5-\7-\8 - \6.zip"
12. Copy all the generated rename commands and save as filename.bat. Attention! Replace illegal characters (like colon ':') in file names, otherwise they will be skipped.
13. After downloads completed, put all downloaded files and the filename.bat into the same folder and then double-click to filename.bat.
HTH someone else..