cs498gpl:perl_project
Table of Contents
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 exercise 7 is recommended.
Useful links:
cs498gpl/perl_project.txt · Last modified: 2019/02/14 15:14 by jchung