title: Getting text from br tags in BeautifulSoup
body: <p>I almost have a grip on BeautifulSoup4 in Python, but I can't seem to pull out the <code>&lt;br/&gt;</code> data for the br tags in HTML data.</p>
  
  <p><strong>Data Structure:</strong></p>
  
  <pre><code>&lt;HTML and CSS Stuff here&gt;
  &lt;div class="menu"&gt;
  &lt;span class="author"&gt;Bob&lt;/span&gt; 
  &lt;span class="smaller"&gt;(06 Jul at 09:21)&lt;/span&gt;
  &lt;br/&gt;This message is very important to extract along with the matching author and time of submit&lt;br/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>What I'm looking for is:</strong></p>
  
  <pre><code>Author: Bob
  Time: (06 Jul at 09:21)
  Data: This message is very important to extract along with the matching author and time of submit
  </code></pre>
  
  <p>The HTML comes in through <code>requests</code>, that all works fine. But I'm just not getting the soup to mix correctly.</p>
  
  <p><strong>Current Code:</strong></p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  html_doc = """
  &lt;HTML and CSS Stuff here&gt;
  &lt;div class="menu"&gt;
  &lt;span class="author"&gt;Bob&lt;/span&gt; 
  &lt;span class="smaller"&gt;(06 Jul at 09:21)&lt;/span&gt;
  &lt;br/&gt;This message is very important to extract along with the matching author and time of submit&lt;br/&gt;
  &lt;/div&gt;
  """
  
  html_doc = r.text
  soup = BeautifulSoup(html_doc, 'html.parser')
  
  x = soup.select('div[class="menu"]')
  for i in x:
      s = soup.select('span[class="author"]')
      rr = soup.select('span[class="smaller"]')
      for b in s:
          print b
          print rr
  </code></pre>