Assignment 7
Web access
Submit before 11:30 Saturday March 9
Overview
For this assignment, you'll write a Python program that accesses a list of web content of your own choosing. You will construct a regular expression that matches the pattern of content to extract the desired information.
Instructions and code writing
- Identify a web page on the internet that has a list of content that is of interest to you.
- Test that you can access the web page with urlopen. If not, go back to step 1.
- Examine the source code of the web page and construct a regular expression pattern that matches each instance of your desired information.
- Construct a class with a name of your choosing (e.g. InfoAccess), whose __init__ method accesses the web page and places the desired content into a list instance variable.
- Write an instance method to your class called display that appropriately prints the content. Consider sorting it appropriately.
- Creating a second python file that imports your class and shows how it works.
Deliverable
Create a text, word or pdf file that contains the following:
- A statement that summarizes your completion of the assignment. 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.
- A summary of the files included in the zip folder
- Output demonstration 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 5 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