(
        self,
        tag,
        attrs={},
        *,
        partial=True,
        mode="automatic",
        strict=None,
    )
return found
\
        Return matching HTML elements

        Arguments:

        - tag: target element tag
        - attrs: target element attributes
        - partial: match on attributes
        - mode: dependent return behavior {'auto/automatic', 'all/list', 'first'}

        Deprecations:

        - strict: (as of 1.0) use partial=

        Examples:

        ```
        soup.find('p', {'class': 'a'})
        # [<p class="a">1</p>, <p class="a">2</p>]

        soup.find('p', {'class': 'a'}, mode='first')
        # <p class="a">1</p>

        result = soup.find('p', {'class': 'b'}, mode='auto')
        print(result)
        # <p class="b">3</p>

        print(result.text)
        # 3
        ```
\
        Return matching HTML elements
\ Return matching HTML elements
def find(
        self,
        tag,
        attrs={},
        *,
        partial=True,
        mode="automatic",
        strict=None,
    ):
        """\
        Return matching HTML elements

        Arguments:

        - tag: target element tag
        - attrs: target element attributes
        - partial: match on attributes
        - mode: dependent return behavior {'auto/automatic', 'all/list', 'first'}

        Deprecations:

        - strict: (as of 1.0) use partial=

        Examples:

        ```
        soup.find('p', {'class': 'a'})
        # [<p class="a">1</p>, <p class="a">2</p>]

        soup.find('p', {'class': 'a'}, mode='first')
        # <p class="a">1</p>

        result = soup.find('p', {'class': 'b'}, mode='auto')
        print(result)
        # <p class="b">3</p>

        print(result.text)
        # 3
        ```
        """
        self.tag = tag
        self.attrs = attrs
        self._partial = partial
        self._counter: Counter = Counter()
        self._groups: List["Soup"] = []
        self.feed(self._html)
        found = self._triage(self._groups, mode)
        return found
def find ( self , tag , attrs = { } , * , partial = True , mode = "automatic" , strict = None , ) : self . tag = tag self . attrs = attrs self . _partial = partial self . _counter : Counter = Counter ( ) self . _groups : List [ "Soup" ] = [ ] self . feed ( self . _html ) found = self . _triage ( self . _groups , mode ) return found