beautiful soup search by innter text code example Example: beautifulsoup find by text soup.find_all("a", string="Elsie") # [Elsie]