title: python beautifulsoup get html tag content
body: <p>How can I get the content of an html tag with beautifulsoup? for example the content of <code>&lt;title&gt;</code> tag?</p>
  
  <p>I tried:</p>
  
  <pre><code>from bs4 import BeautifulSoup
  
  url ='http://www.websiteaddress.com'
  soup = BeautifulSoup(url)
  result = soup.findAll('title')
  for each in result:
      print(each.get_text())
  </code></pre>
  
  <p>But nothing happened. I'm using python3. </p>