Changes

Jump to: navigation, search

OPS435 Python Assignment 3

486 bytes added, 13:59, 16 November 2018
Program Name and valid command line arguments
Name your Python3 script as <code>ccn_[student_id].py</code>. Create a symbolic link to your script as ccn.py (e.g. use the command ln -s ccn_rchan.py ccn.py to create the link) so that you can refer to your script as ccn.py. Your script must accept one or more "web site" as its command line parameters and other optional parameters as shown below. Your python script should produce the following usage text when run with the --help option:
<pre>
[rchan@centos7 a3]$ python3 ccn.py -husage: ccn.py [-h] [-s SITE] [-t {table,text}] [-n {table,text}] N [N ...]
Class Cancellation Notification System
-h, --help show this help message and exit
-s SITE, --site SITE class cancellation web site
-t {table,text}, --type {table,text}
type of class concellation data: table -> html table,
text -> plain text file
-n {table,text}, --notification {table,text}
type of notification data: table -> html table, text
-> plain text file
Copyright 2018 - Raymond Chan
If there is more than one CCN subscription web page provided, merge all the subscription list with the first one at the top and the last one at the bottom. Read and process the subscription list in that order in your program.
 
If no class cancellation site specified, default to https://ict.senecacollege.ca/cc/cancellations/today.
 
If no -t or -n specified, default to html table.
=== Header ===
1,760
edits

Navigation menu