title: HTTP Error 429: Restricted -- Python Web Scraping
body: <p>I am attempting to web scrape specific data off of (website here) to produce a list of additional statistics for this computer game for my personal interests. However, whenever I attempt to scrape data I get the following error:</p>
  
  <p><b>HTTP Error 429: Restricted</b></p>
  
  <p>I researched the error and it says: "The user has sent too many requests in a given amount of time. Intended for use with rate limiting schemes." I am unable to open any page on this website as a result.</p>
  
  <p>Here is my current code:</p>
  
  <pre><code>import urllib.request
  import urllib.parse
  
  try:
      url = urllib.request.urlopen('website here')
      headers = {}
      headers['User-Agent'] = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.27 Safari/537.17'
      req = urllib.request.Request(url, headers=headers)
      resp = urllib.requests.urlopen(req)
      respData = resp.read()
      print (respData)
  
  except Exception as e:
      print(str(e))
  </code></pre>
  
  <p>Changing the "User-Agent" wasn't successful. Since the error is referring to a large amount of requests, is it possible that I can add a delay somewhere in my script? I was thinking that I could write a file on my computer that would keep adding chunks of the page over time. Any ideas?</p>
  
  <p>And I am somewhat new to Python/scraping, so try to keep it in simple terms :) Thank you!</p>
  
  <p>-2.0</p>
  
  <p>Note: I have Python 3.4 and 2.7</p>