title: How to get values of cursor object by using Python
body: <p>I have data in mondoDB;</p>
  
  <pre><code>db.np_tpy_gla.find({},{"_id":0, "c": 1})
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>{ "c" : NumberLong(18) }
  { "c" : NumberLong(40) }
  { "c" : NumberLong(42) }
  { "c" : NumberLong(54) }
  ...
  </code></pre>
  
  <p>I am trying to get these values by using Python (pymongo).
  Here is my code:</p>
  
  <pre><code>counterNumber = cursor.count()
  gettingTotalSize = cursor.find({"c": True})
  
  print counterNumber 
  print gettingTotalSize 
  </code></pre>
  
  <p>and here is result:</p>
  
  <pre><code>115
  &lt;pymongo.cursor.Cursor object at 0x13c7890&gt;
  </code></pre>
  
  <p>I'm tring to get "gettingTotalSize" values one by one.</p>
  
  <p>How can i get these values? i also tried for loop.</p>
  
  <p>Thanks.</p>
  
  <p>EDIT :</p>
  
  <p>I changed my codes like: </p>
  
  <pre><code>gettingTotalSize = cursor.find({}, {"_id": 0, "c": 1})
  </code></pre>
  
  <p>Vignesh Kalai'codes:</p>
  
  <pre><code>for x in gettingTotalSize :
      print x
  </code></pre>
  
  <p>Here is the new result :</p>
  
  <pre><code>{u'c': 18L}
  {u'c': 40L}
  {u'c': 42L}
  {u'c': 54L}
  ...
  </code></pre>
  
  <p>Now I need only the value (18,40,42,54...)</p>
  
  <p>Any ideas? :)</p>