title: how to make python request.get wait a few seconds?
body: <p>I wanted to do get some experience with html crawling, so I wanted to see if I could grab some values of the following site: <a href="http://www.iex.nl/Aandeel-Koers/11890/Royal-Imtech/koers.aspx" rel="nofollow">http://www.iex.nl/Aandeel-Koers/11890/Royal-Imtech/koers.aspx</a> </p>
  
  <p>This site shows the price of imtech shares. 
  If you take a look at the site, you see there is 1 number shown in bold, this is the price of the share. </p>
  
  <p>As you may have seen, this price changes, and that's okay. I only want the value at the time I run my script at this point in time.</p>
  
  <p>but if you reload the page, you may notice how it first shows "laatste koers" and after a delay of 1 second it shows "realtime"</p>
  
  <p>As you may have figured out by now, I'm interested in the "realtime" value.</p>
  
  <p>Here is my question, how do I get this value, I've tried time.sleep(2) on different places. I've tried a timeout at the request. Both didn't work.</p>
  
  <p>How can I fix this?</p>
  
  <pre><code>from lxml import html
  import requests
  
  pagina = 'http://www.iex.nl/Aandeel-Koers/11890/Royal-Imtech/koers.aspx'
  
  page = requests.get(pagina)
  tree = html.fromstring(page.text)
  
  koers = tree.xpath('//span[@class="RealtimeLabel"]/text()')
  
  prices = tree.xpath('//span[@id="ctl00_ctl00_Content_LeftContent_PriceDetails_lblLastPrice"]/text()')
  print koers[0], pagina.split("/")[5], prices[0]
  </code></pre>
  
  <p>I get output like this</p>
  
  <pre><code>Laatste koers Royal-Imtech 0,093
  </code></pre>
  
  <p>While I want output like this</p>
  
  <pre><code>Realtime Royal-Imtech 0,093
  </code></pre>