using beautifulsoup to search html for string,soup.body.findAll(text=re.compile('^Python$'))