(self, key)
return self.attrs[key]
tag[key] returns the value of the 'key' attribute for the tag,
        and throws an exception if it's not there.
tag[key] returns the value of the 'key' attribute for the tag,
        and throws an exception if it's not there.
tag [ key ] returns the value of the key attribute for the tag and throws an exception if it s not there .
def __getitem__(self, key):
        """tag[key] returns the value of the 'key' attribute for the tag,
        and throws an exception if it's not there."""
        return self.attrs[key]
def __getitem__ ( self , key ) : return self . attrs [ key ]