title: Scrape html data with beautifulsoup 4
body: <p>I am trying to scrape data from nanopool to use in my python script, but whenever I attempt to scrape the data, I only get the class, not the text that I am looking for. The link to the specific webpage in question can be found <a href="https://eth.nanopool.org/account/0x2a156c6dd3bdf2a0c5b284b45b2396c053c2a63d" rel="nofollow noreferrer">here</a><br>
  <strong>Very simplified page source</strong>  </p>
  
  <p><strong>First Piece of data I am trying to fetch:</strong>                        </p>
  
  <pre><code>&lt;table class="table table-hover table-bordered" style="margin-bottom: 5px;" data-bind="with: calc"&gt;
  &lt;tbody&gt;
          &lt;tr data-bind="with: hour"&gt;&lt;td&gt;Hour&lt;/td&gt;
              &lt;td class="text-right" data-bind="text: coins"&gt;0.00015&lt;/td&gt;
              &lt;td class="text-right" data-bind="text: bitcoins"&gt;0.000012&lt;/td&gt;
              &lt;td class="text-right" data-bind="text: dollars"&gt;0.058&lt;/td&gt;&lt;td class="text-right" data-bind="text: euros"&gt;0.048&lt;/td&gt;
              &lt;td class="text-right" data-bind="text: yuan"&gt;0.372&lt;/td&gt;&lt;td class="text-right" data-bind="text: rubles"&gt;3.244&lt;/td&gt;
          &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>Second Piece of data I am trying to fetch:</strong><br>
  <code>&lt;div class="panel-body" data-bind="text: balance() + ' ETH'"&gt;0.02743061 ETH&lt;/div&gt;</code>  </p>
  
  <p><strong>Code that I have been trying to use:</strong><br>
  <strong>Input</strong>  </p>
  
  <pre><code>r = requests.get('https://eth.nanopool.org/account/0x2a156c6dd3bdf2a0c5b284b45b2396c053c2a63d')
  soup = BeautifulSoup(r.text, 'html.parser')
  balance = soup.findAll('div', attrs = {'class': 'panel-body'})[3]
  calc_box = soup.findAll('table')[3].findAll('tr')[2].find('td', {'class', 'text-right'})
  print(calc_box)
  print(balance)
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>&lt;td class="text-right" data-bind="text: coins"&gt;&lt;/td&gt;
  &lt;div class="panel-body" data-bind="text: balance() + ' ETH'"&gt;&lt;/div&gt;
  </code></pre>