human
Using BeautifulSoup to search html for string
assistant
Here is some code to searche in HTML string for elements that have text 'Python'

soup.body.findAll(text='Python')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.