3 ms·
What happens if 'find()' returns a list and you call '.text()'. Intuition tells me it should fail but maybe it implicitly gets the text from the first item if i
by fyzix 3y ago
What happens if 'find()' returns a list and you call '.text()'. Intuition tells me it should fail but maybe it implicitly gets the text from the first item if it exists.
Either way, I think you create a separate method 'find_all()' that returns a list to make the API easier to reason about.