Assignment 7
Class design
Submit before 11:30 Saturday May 30

Overview

For this assignment, you'll design and implement your own class that scrapes a list of content from a web page and provides an application programmer some methods for accessing the list.

Instructions and code writing

  1. Identify a web page that presents a list of content that is of interest to you. It may be one of the pages worked out in class. Ensure that you are able to access the page and scrape its content with a regular expression.
  2. Create a class with a name of your choice (e.g., ListMaker). When creating an object that belongs to this class, it should download the list content from a targeted web page and store the list content in an instance variable.
  3. Design and write methods for your class. At minimum, it should provide the following:
    • Access to the list
    • Displays of the list
    • Some search of an item in the list
    • Options for sorting

    These functionalities could be combined within the same method.

  4. Write test code that demonstrates how your class works. Include at least one assert statement.

Deliverable

Create a word or pdf file that contains the following:

  1. A statement that summarizes your completion of the lab. The statement should include any help you received or whether you discussed your assignment with others. Keep in mind that you may not copy code from others or allow others to copy your code.
  2. Your clearly labeled answers to explanations and questions
  3. A summary of the files included in the zip folder
  4. Demonstrations that show that your code works

Put your doc file and your py files in a folder, zip it, and submit it on D2L. Check that your submitted zip file is complete.

Grading

The assignment is worth 6 points. Full credit will be awarded to complete, accurate and well presented submissions. Points will be deducted for the following:

  • Missing requirements
  • Inaccuracies (possibly excepting minor ones)
  • Poorly written explanations
  • Code constructs or style not used in class