(self, name, namespace, nsprefix, attrs)
return tag
Push a start tag on to the stack.

        If this method returns None, the tag was rejected by the
        SoupStrainer. You should proceed as if the tag had not occured
        in the document. For instance, if this was a self-closing tag,
        don't call handle_endtag.
Push a start tag on to the stack.
Push a start tag on to the stack .
def handle_starttag(self, name, namespace, nsprefix, attrs):
        """Push a start tag on to the stack.

        If this method returns None, the tag was rejected by the
        SoupStrainer. You should proceed as if the tag had not occured
        in the document. For instance, if this was a self-closing tag,
        don't call handle_endtag.
        """

        # 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
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