title: Python Glassdoor API
body: <p>I'm trying to get glassdoor data from their API in Python: </p>
  
  <pre><code>import urllib2
  
  id1 = 'x'
  key = 'y'
  action = 'employers'
  company = 'company'
  
  basepath = 'http://api.glassdoor.com/api/api.htm?v=1&amp;format=json&amp;t.p='
  url = basepath + id1 + '&amp;t.k=' + key + '&amp;action=' + action + '&amp;q=' + company + '&amp;userip=192.168.43.42&amp;useragent=Mozilla/5.0'
  
  response = urllib2.urlopen(url)
  html = response.read()
  </code></pre>
  
  <p>And I'm getting the following error:</p>
  
  <pre><code>&gt;&gt;&gt; response = urllib2.urlopen(url)
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "//anaconda/lib/python2.7/urllib2.py", line 154, in urlopen
      return opener.open(url, data, timeout)
    File "//anaconda/lib/python2.7/urllib2.py", line 437, in open
      response = meth(req, response)
    File "//anaconda/lib/python2.7/urllib2.py", line 550, in http_response
      'http', request, response, code, msg, hdrs)
    File "//anaconda/lib/python2.7/urllib2.py", line 475, in error
      return self._call_chain(*args)
    File "//anaconda/lib/python2.7/urllib2.py", line 409, in _call_chain
      result = func(*args)
    File "//anaconda/lib/python2.7/urllib2.py", line 558, in http_error_default
      raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
  urllib2.HTTPError: HTTP Error 403: Forbidden
  </code></pre>
  
  <p>Can anyone help...?</p>
  
  <p>Thanks</p>