title: Error retrieving JSON data from Webhose API in Python
body: <p>I am a beginner in Python and am trying to use the webhose.io API to collect data from the web. The problem is that this crawler retrieves 100 objects from one JSON at a time, i.e., to retrieve 500 data, it is necessary to make 5 requests. When I use the API, I am not able to collect all the data at once. I was able to collect the first 100 results, but when going to the next request, an error occurs, the first post is repeated. Follow the code:</p>
  
  <pre><code>import webhoseio
  webhoseio.config(token="Xxxxx")
  query_params = {
      "q": "trump:english",
      "ts": "1498538579353",
      "sort": "crawled"
  }
  output = webhoseio.query("filterWebContent", query_params)
  
  
  x = 0
  
  for var in output['posts']:
      print output['posts'][x]['text']
      print output['posts'][x]['published']
      if output['posts'] is None:
          output = webhoseio.get_next()
          x = 0
  </code></pre>
  
  <p>Thanks.</p>