title: Can't extract a value out of HTML with lxml
body: <p>I have this piece of HTML (numbers differ):</p>
  
  <p><code>&lt;span class="ng-binding"&gt;
      &lt;b&gt;Total:&lt;/b&gt; 
      68.71€ (459 items)
  &lt;/span&gt;</code></p>
  
  <hr>
  
  <p>Out of this i want to extract the <code>68.71€ (459 items)</code></p>
  
  <hr>
  
  <p>I tried doing it with this piece of Code so far and just copied the xpath to the span class shown above right out of Google Chrome:</p>
  
  <pre><code>import urllib.request
  from lxml import html
  import os
  
  ids =  ["ftpstorage1-730",
          "ftpstorage2-730",
          "ftpstorage3-730"]
  
  for id in ids:
  
  url = 'http://steam.tools/itemvalue/#/'+id
  with urllib.request.urlopen(url) as response:
      site = response.read()
      tree = html.fromstring(site)
      data = tree.xpath('//*[@id="container"]/div[5]/span[1]/text()')
  
      print(data)
  </code></pre>
  
  <p>In theory this should work but it won't, all i do get as <code>data</code> is:</p>
  
  <pre><code>[" {{(items | filter:dupesFilter | filter:typeFilter | filter:filterText |   sumByKey:'price':'count':
  e}}\n\t\t\t\t({{items | filter:dupesFilter | filter:typeFilter |    filter:filterText | sumByKey:'count
  [" {{(items | filter:dupesFilter | filter:typeFilter | filter:filterText | sumByKey:'price':'count':
  e}}\n\t\t\t\t({{items | filter:dupesFilter | filter:typeFilter | filter:filterText | sumByKey:'count
  [" {{(items | filter:dupesFilter | filter:typeFilter | filter:filterText | sumByKey:'price':'count':
  e}}\n\t\t\t\t({{items | filter:dupesFilter | filter:typeFilter | filter:filterText | sumByKey:'count
  </code></pre>
  
  <hr>
  
  <p>any idea what i'm doing wrong?</p>
  
  <p>does it have something to do with the numbers being generated and not being static?</p>
  
  <p>If so, how can i still extract the numbers?</p>