title: How to run post in python for multiple categories?
body: <p>I am having a Python script that pulls data from a third party API.</p>
  
  <p>Below is the part of code that runs the post command on the API.</p>
  
  <pre><code>data = json.dumps({"filters": ["(headline:coronavirus OR summary:coronavirus OR headline:covid-19 OR summary:covid-19) AND categories:164"], "sort_by":"created_at", "size":5000})
  
  type(data)
  
  r = requests.post(url = api_endpoint, data = data).json()
  </code></pre>
  
  <p>In above filters the "categories" number depicts city code for example 164 belongs to Atlanta. I have total 50 cities with different category numbers to run. </p>
  
  <p>Currently I am running line of code  50 times by changing the category number to each city. Is there a better way to run this in one script run instead of 50 times? </p>
  
  <p>That category number is not a serial numbers, each city has been assigned random numbers.</p>