find a tag contains another tag with beatifulsoup code example Example: beautifulsoup find by text soup.find_all("a", string="Elsie") # [Elsie]