Question: 2) Processing the input file With the Tag class complete, you must now implement a function that will read an HTML file, extract the HTML

2) Processing the input file With the Tag class complete, you must now implement a function that will read an HTML file, extract the HTML tags and return them in a list. To do this you will need to complete the process_html_file () function in the HTML_Processor_abcd001.py file. Here is a COMPSCI 105 S2 C- Assignment One 11 of 13 simple algorithm you can follow: Create an empty list to store the tags you encounter. Read one character at a time from the data file, ignoring everything until you get to a" (ignore theas well Read one character at a time, appending them to a string until you get to a "" or a white space (ignore the " and the white space as well. The string you have built is the name of the tag. Use this tag name to create an instance of the Tag class and append it to the list. Hint: end tags have a"before their name. Once you have gone through the data file and completed your list of tags, return it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
