title: Using "requests" to use bitcoin address balance
body: <p>I am trying to get the balance of a bitcoin address and use it as a number in the rest of my application:</p>
  
  <pre><code>import requests
  req = requests.get('http://blockexplorer.com/q/getreceivedbyaddress/19hMEAaRMbEhfSkeU4GT8mgSuyR4t4M6TH/1')
  
  SatoshiConvert = int(req.text) / 100000000
  print SatoshiConvert
  </code></pre>
  
  <p>This is resulting in the following error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "checkBalances.py", line 26, in &lt;module&gt;
  SatoshiConvert = int(req.text) / 100000000
  ValueError: invalid literal for int() with base 10: '83.58000000' 
  </code></pre>
  
  <p>I think that I am trying to use an object as a number but despite trying to make the transformation, I have been unable to.</p>
  
  <p>EDIT: Thanks to EdChum for the reply. For anyone wondering how to change a bitcoin balance to satoshis I used this code with the above request-</p>
  
  <pre><code>SatoshiConvert = int((float(req.text))*100000000)
  </code></pre>