for loop executing only one time in python
<p>I am fetching data from mysql and running each of them in loop but its going only one time.</p>

<pre><code>for row in cur.fetchall() :
    print row[1]
    URL2="https://www.googleapis.com/customsearch/v1?key=gfdgfdgdfgdfg4&amp;

cx=013036536707430787589:_pqjad5hr1a&amp;q="+row[1]+"&amp;alt=json"
   googleResponse = urllib.urlopen(URL2);
   jsonResponse = json.loads(googleResponse.read())
   print jsonResponse['items'][0]['link']
</code></pre>

<p>"It is only printing json of last record"</p>
