title: Find 'p' Tags After h Tags
body: <p>I want to find Extract both the Header and Paragraph Text from a Webpage. The issue is that there are flexible number of Headers and Paragraphs after the headers with the same header tag and the paragraph tag.</p>
  
  <p>Sample HTML - </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;h6&gt;PHYSICAL DESCRIPTION&lt;/h6&gt;
  
  &lt;p&gt;
      &lt;strong class="offender"&gt;YOB:&lt;/strong&gt; 1987&lt;br /&gt;
      &lt;strong class="offender"&gt;RACE:&lt;/strong&gt; WHITE&lt;br /&gt;
      &lt;strong class="offender"&gt;GENDER:&lt;/strong&gt; FEMALE&lt;br /&gt;
      &lt;strong class="offender"&gt;HEIGHT:&lt;/strong&gt; 5'05''&lt;br /&gt;
      &lt;strong class="offender"&gt;WEIGHT:&lt;/strong&gt; 118&lt;br /&gt;
      &lt;strong class="offender"&gt;EYE COLOR:&lt;/strong&gt; GREEN&lt;br /&gt;
      &lt;strong class="offender"&gt;HAIR COLOR:&lt;/strong&gt; BROWN&lt;br /&gt;
  &lt;/p&gt;
  
  
  &lt;h6&gt;SCARS, MARKS, TATTOOS&lt;/h6&gt;
  &lt;p&gt;     
    &amp;nbsp;    
  &lt;/p&gt;
  </code></pre>
  
  <p>I am using code as below - </p>
  
  <pre class="lang-python prettyprint-override"><code>sub = soup.findAll('h6')
      print sub.text
  
  sub = soup.findAll('p')
  for strong_tag in sub.find_all('strong'):
      print strong_tag.text, strong_tag.next_sibling
  </code></pre>
  
  <p>Since headers dont include the p tags in them, i am not sure how to process the HTML in order that its written.</p>
  
  <p>Is there a way that we can treat the HTML like a file and find the next h6 tags and then the next p tag and keep doing it till the end?</p>