Computer Science 111, Fall Semester, 2006
Homework #11

due: by midnight December 13, 2006

Your task in this week's project is expand your Hw10 to include a search function that searches your siteList and to write an html file with the results.

getcopy hw11demo.pyc
for a demonstration. You can make your user interface a little more friendly than this one. But do not add any inputs! After you run the function, look at the file hw11Results.html.

Preliminary Work

Do the following:

Make your siteList searchable

After the search loop, define and call a function to write out an html file with the information from the Site objects that were found.

After the search loop, define a new function that generates an html file in this way: This is important! Amazon returns full URLs with "http://" in front of them already. Remember that we had to add that to our URLs for hw6. So make sure the href does not have more than one "http://" in the string.

Submit the homework by typing

submit homework11 hw11.py
Important Note: In homework 11, you must provide documentation for all functions. i.e. Just before the function definition, include a banner, in comments, that says the function name, what it takes for arguments and what it returns, and what task it performs.

I will test your program by accessing your web site, and also by examining your hw11.py file.

p.s. This has been one of my favorite csc111 classes ever!