Implement the custom HTMLParser headerFinder (HTML), the…

Question Answered step-by-step Implement the custom HTMLParser headerFinder (HTML), the… Implement the custom HTMLParser headerFinder(HTML), the boilerplate for this parser has been provided for you. What your headerFinder() should do is be able to parse a provided URL and gather how many h1, h2, and h3 tags are present in that website.  You can test your parser on this website here: http://soothingquietyoungtreasure.neverssl.com/online  Hint: so far, we have only tested gathering one tag (such as li or title), for this one, you will need more than one flag and attribute to track multiple tags. You may also experience issues with HTTPS security on some websites. To change which website you want to test your parser on, navigate to the Question 4 Testing Section and modify the string called url (shown below).Image transcription textparser = headerFinder () url =’http://soothingquietyoungtreasure .neverssl.com/online’ cont… Show more… Show moreUse the following code to start:class headerFinder(HTMLParser):   def __init__(self):       HTMLParser.__init__(self)       pass   def handle_starttag(self,tag,attrs):       pass   def handle_endtag(self, tag):       pass   def getTotalH1Tags(self):       pass      def getTotalH2Tags(self):       pass   def getTotalH3Tags(self):       pass Expected Output:          Output using http://soothingquietyoungtreasure.neverssl.com/online         Feel free to experiment with other websites. At the very minimum make sure that it works on the neverssl website. Output using https://www.reddit.com/   Computer Science Engineering & Technology Python Programming CSC 242 Share QuestionEmailCopy link Comments (0)