Skip to content Skip to sidebar Skip to footer

BeautifulSoup Difference Between FindAll And FindChildren

What is the difference? Don't they do the same thing - find the inside tags with given properties?

Solution 1:

findChildren returns a resultSet just as find_all does, there is no difference in using either method as findChildren is actually find_all, if you look at the link to the source you can see:

 findChildren = find_all  # BS2

It's there for backwards compatibility as is findAll = find_all # BS3


Post a Comment for "BeautifulSoup Difference Between FindAll And FindChildren"