====== Perl Project - Retrieve Web Advisor Course Timetable ====== Due: Tuesday, Feb 26, 2019, 11:59pm Work in groups of 2-3. Write a Perl script, //**wa_timetable.pl**//, to retrieve a department course timetable from https://www2.monmouth.edu/muwebadv/wa3/search/SearchClassesV2.aspx. //wa_timetable.pl// will take the following command line arguments: * Term : which Term (semester) the class is in, e.g. "19/SP - Spring 2019" * Subject : which Subject the class is in, e.g. English * -help : display a help screen and sample usage * -terms : list all currently available Terms * -subjects : list all currently available Subjects A sample usage for //wa_timetable.pl// is: perl -w wa_timetable.pl "19/SP - Spring 2019" "English" The above run of //wa_timetable.pl// must return **the html document** that displays the course timetable for English, Spring 2019. For the //-terms// and //-subjects// command line arguments, //wa_timetable.pl// must extract and display currently available Terms and Subjects from https://www2.monmouth.edu/muwebadv/wa3/search/SearchClassesV2.aspx. ===== Outline of possible approach: ===== * Use a Perl web interaction module to retrieve https://www2.monmouth.edu/muwebadv/wa3/search/SearchClassesV2.aspx into a variable. * From that variable, extract the available Terms and Subjects into arrays. * The technique used at http://perldoc.perl.org/perlrequick.html#Extracting-matches and in [[perl_exercises#exercise_7_-_extract_data_from_html|Perl exercise 7]] is recommended. ===== Useful links: ===== * [[introduction_to_perl#perl_web_automation|Perl web automation]]