title: Need to get text from html using python BeautifulSoup
body: <p>I'm stuck, can't get data needed, this is the html code</p>
  <pre><code>&lt;div role=&quot;tabpanel&quot; class=&quot;tab-pane active&quot; id=&quot;final-results&quot;&gt;
  &lt;div class=&quot;container-fluid&quot;&gt;
      &lt;div class=&quot;row&quot;&gt;
          &lt;div class=&quot;col-xs-12 instruction&quot;&gt;
              &lt;h4&gt;Final and Return&lt;/h4&gt;
          &lt;/div&gt;
          &lt;div class=&quot;col-xs-12 col-sm-3 non-printable&quot;&gt;
              &lt;img class=&quot;img-responsive rotate-card&quot; src= &quot;...&quot;&gt;
          &lt;/div&gt;
          &lt;div class=&quot;col-xs-12 col-sm-3 text-center&quot;&gt;
              &lt;div class=&quot;data-box&quot;&gt;
                  &lt;div class=&quot;name&quot;&gt;Final Ending&lt;/div&gt;
                  &lt;div class=&quot;value&quot;&gt;123456789&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class=&quot;col-xs-12 col-sm-3 text-center&quot;&gt;
              &lt;div class=&quot;data-box&quot;&gt;
                  &lt;div class=&quot;name&quot;&gt;Available Phase&lt;/div&gt;
                  &lt;div class=&quot;value&quot;&gt;250&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class=&quot;col-xs-12 col-sm-3 text-center&quot;&gt;
              &lt;div class=&quot;data-box&quot;&gt;
                  &lt;div class=&quot;name&quot;&gt;Initial Phase&lt;/div&gt;
                  &lt;div class=&quot;value&quot;&gt;500&lt;/div&gt;
              &lt;/div&gt;
  
          &lt;/div&gt;
  </code></pre>
  <p>Here's my python code :</p>
  <pre><code>soup = BeautifulSoup(form_resp.content, features=&quot;html.parser&quot;)
  
      avail_phase = soup.find(&quot;div&quot;, text=&quot;Available Phase&quot;).find_parent(&quot;div&quot;, class_=&quot;value&quot;).text
  
      initial_phase = soup.find(&quot;div&quot;, text=&quot;Initial phase&quot;).find_parent(&quot;div&quot;, class_=&quot;value&quot;).text
  
      logger.info(&quot;Success! Final Number: {}&quot;.format(avail_phase))
  
      return {&quot;initial_phase&quot;: initial_phase, &quot;available_phase&quot;: avail_phase}
  </code></pre>
  <p>I'm getting the same error no matter what i do &quot;Last error: 'NoneType' object has no attribute 'find_parent'&quot;</p>
  <p>Seek your help please</p>