Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> doc = '<html><head><title>Page title</title></head><body><p>This is a paragraph</p></html>'
- >>> soup = BeautifulSoup(doc)
- >>> print soup.findAll('p')[0].text
- This is a paragraph
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement