title: How to parse the JSON coming from all the URL's using Python?
body: <p>I have a URL which gives me the below JSON String if I hit them on the browser - </p>
  
  <p>Below is my URL, let's say it is <code>URL-A</code></p>
  
  <pre><code>http://hostnameA:1234/Service/statistics?%24format=json
  </code></pre>
  
  <p>And below is my JSON String - </p>
  
  <pre><code>{
   "description": "",
   "statistics": {
    "dataCount": 0,
   }
  }
  </code></pre>
  
  <p>So like the above <code>URL-A</code>, I have around 5 urls, which also gives me the same JSON String back but it might be possible that <code>dataCount</code> count is not zero in them.</p>
  
  <p>Now what I am supposed to do is, I need to write a Python script which can scan all the 5 URL's and then parse then JSON String to extract the <code>dataCount</code> from it and its count as well. And it should keep on running every few seconds to scan the URL and then parse it.</p>
  
  <p>Below are my URL's</p>
  
  <pre><code>URL-A       http://hostnameA:1234/Service/statistics?%24format=json
  URL-B       http://hostnameB:1234/Service/statistics?%24format=json
  URL-C       http://hostnameC:1234/Service/statistics?%24format=json
  URL-D       http://hostnameD:1234/Service/statistics?%24format=json
  URL-E       http://hostnameE:1234/Service/statistics?%24format=json
  </code></pre>
  
  <p>And the data I want to see is like this on the console, here dataCount will be actual number </p>
  
  <pre><code>hostnameA - dataCount
  hostnameB - dataCount
  hostnameC - dataCount
  hostnameD - dataCount
  hostnameE - dataCount
  </code></pre>
  
  <p>Is this possible to do it in Python?</p>
  
  <p><strong>UPDATE:-</strong></p>
  
  <p>This is what I have tried - </p>
  
  <pre><code>import urllib, json
  url = "http://hostnameA:1234/Service/statistics?%24format=json"
  response = urllib.urlopen(url);
  data = json.loads(response.read())
  print data
  </code></pre>
  
  <p>But how to do the same thing for other 5 URL's and keep on scanning it every 10 seconds and also extract dataCount from it?</p>