title: scraping a constantly changing integer from a website
body: <p>I am trying to extract numeric data from a website. I tried using a simple web scraper to retrieve the data:</p>
  
  <pre><code> from mechanize import Browser
   from bs4 import BeautifulSoup
  
   mech = Browser()
   url = "http://www.oanda.com/currency/live-exchange-rates/"
   page = mech.open(url)
   html = page.read()
   soup = BeautifulSoup(html)
  
   data1 = soup.find(id='EUR_USD-b-int')
  
   print data1
  </code></pre>
  
  <p>This kind of approach normally would give the line of data from the website including the contents of the element I am trying to extract. However it gives everything but the contents which is the part I need. I have tried .contents and it returns []. I've also tried .child and it returns 'none'. Does anyone know another method that could work. I have looked through the beautiful soup documentation but I can't seem to find a solution?</p>