beautifulsoup to text python code example
Example 1: beautifulsoup get text
# Find all of the text between paragraph tags and strip out the html
page = soup.find('p').getText()
Example 2: children beautiful soup
li = soup.find('li', {'class': 'text'})
children = li.findChildren("a" , recursive=False)
for child in children:
print child