title: Alexa site rank API
body: <p>Today I was working on Alexa API to get sites popularity rank using this code:</p>
  
  <pre><code>import urllib.request, sys, re
  
  site = 'https://stackoverflow.com/questions/'
  xml = urllib.request.urlopen('http://data.alexa.com/data?cli=10&amp;dat=s&amp;url=%s'%site).read()
  try: rank = int(re.search(r'&lt;POPULARITY[^&gt;]*TEXT="(\d+)"', xml).groups()[0])
  except: rank = -1
  print('Your rank for %s is %d!\n' % (site, rank))
  </code></pre>
  
  <p>It was working perfectly, but suddenly it stopped!, I checked the API link manually:</p>
  
  <pre><code>http://data.alexa.com/data?cli=10&amp;dat=s&amp;url=https://stackoverflow.com/questions/
  </code></pre>
  
  <p>and it just returns a word "Okay" rather than a XML string .. What is the problem ?!</p>