from http_tag_counter.http_tag_counter import _HttpTagCounter
from bs4 import BeautifulSoup



class HttpTagCounter(_HttpTagCounter):
    def __init__(self):
        super().__init__()
        pass


    def process(self, data: str) -> dict:
        soup = BeautifulSoup(data,features='html.parser')
        for tag in soup.findAll():
            self.inc_tag(tag.name)
        return self.get()