title: How to handle API request limit in python?
body: <p>Is there a way to stop a program after the API request limit is met? If so, how to do it?
  Do you just count the request number, each time you make an API request? For example, like this:</p>
  <pre><code>while request_count &lt;= 100:
     data = requests.get('url').json()
     request_count += 1
  else:
     break
  </code></pre>