def handle_starttag(self, name, namespace, nsprefix, attrs):

        # print "Start tag %s: %s" % (name, attrs)
        self.endData()

        if (self.parse_only and len(self.tagStack) <= 1
            and (self.parse_only.text
                 or not self.parse_only.search_tag(name, attrs))):
            return None

        tag = Tag(self, self.builder, name, namespace, nsprefix, attrs,
                  self.currentTag, self._most_recent_element)
        if tag is None:
            return tag
        if self._most_recent_element:
            self._most_recent_element.next_element = tag
        self._most_recent_element = tag
        self.pushTag(tag)
        return tag
Push a start tag on to the stack.
dataset/ETHPy150Open socketubs/pyhn/pyhn/lib/bs4_py3/__init__.py/BeautifulSoup.handle_starttag