title: Scraping in python using regex not giving any result?
body: <p>I am using python 3 to scrape a website and print a value. Here is the code</p>
  
  <pre><code>import urllib.request
  import re
  
  url = "http://in.finance.yahoo.com/q?s=spy"  
  hfile = urllib.request.urlopen(url)
  htext = hfile.read().decode('utf-8')
  regex = '&lt;span id="yfs_l84_SPY"&gt;(.+?)&lt;/span&gt;'
  code = re.compile(regex)
  price = re.findall(code,htext)
  print (price)
  </code></pre>
  
  <p>when i run this snippet, it prints an empty list, ie. <code>[]</code>, but i am expecting a value e.g. <code>483.33</code>.</p>
  
  <p>What is the thing that i am getting wrong ? Help</p>