An average submission for this week's homework takes your logfile, uses regular expressions to pull it apart, and prints out some summary data to the console.
For example, you might report how many times the domain rockalypse.org was hit by computers from Allegheny College. (How would you know they were being viewed from Allegheny?) You might report how many different pages were viewed. You might count how many times Google indexed the site.
The list goes on and on. There are straight-forward statistics you can report about an Apache log file (or the Sparkle log file) that you can report using plain text.
An average submission for this week's work includes:
- a Python script that can be executed from the command line
- the script should take the name of the logfile as an argument (ie, you should be able to invoke your script as follows):
> python myscript.py thelogfile.txt
- Your functions should all include a comment of the form:
# addTwoNumbers : number number -> number
which tells me that the function addTwoNumbers takes two variables (both numbers) and it returns a number. - A short report (OpenOffice) that describes what your script does and the process you went through in developing it. Highlight the regular expressions you used to extract information from the logfiles as well as any challenges you faced and how you overcame those challenges.
