title: Export CouchDB database to CSV
body: <p>I'm quite RDB use and have no experience about REST or programming..</p>
  
  <p>I'm usually working with MSSQL and excel... </p>
  
  <p>There is some database on couchdb that I want to export to Excel.</p>
  
  <p>How can I export database to csv?</p>
  
  <p>Here's example of first document's source.</p>
  
  <pre><code>{
     "_id": "0188d98de825528ce9c980f65d0024cc",
     "_rev": "1-046e405f344709e96ee1ef51464871d1",
     "contributors": null,
     "truncated": false,
     "text": "Plume test1",
     "in_reply_to_status_id": null,
     "id": 311079203028209660,
     "favorite_count": 0,
     "source": "&lt;a href=\"http://www.myplume.com/\" rel=\"nofollow\"&gt;Plume for Android&lt;/a&gt;",
     "retweeted": false,
     "coordinates": {
         "type": "Point",
         "coordinates": [
             126.897899,
             37.535298
         ]
     },
     "entities": {
         "symbols": [
         ],
         "user_mentions": [
         ],
         "hashtags": [
         ],
         "urls": [
         ]
     },
     "in_reply_to_screen_name": null,
     "id_str": "311079203028209664",
     "retweet_count": 0,
     "in_reply_to_user_id": null,
     "favorited": false,
     "user": {
         "id": 20825023,
         "id_str": "20825023"
     },
     "geo": {
         "type": "Point",
         "coordinates": [
             37.535298,
             126.897899
         ]
     },
     "in_reply_to_user_id_str": null,
     "lang": "et",
     "created_at": "Mon Mar 11 11:40:36 +0000 2013",
     "in_reply_to_status_id_str": null,
     "place": null
  }
  </code></pre>
  
  <p>I've try <a href="https://gist.github.com/xalakox/3026004" rel="nofollow">https://gist.github.com/xalakox/3026004</a> but doesn't work.</p>
  
  <p>Desire exported csv is something like</p>
  
  <pre><code>created at, text, source, coordinates1, coordinates2
  Mon Mar 11 11:40:36 +0000 2013,Plume test1,Plume for Android,126.897899,37.535298
  Mon Mar 11 11:40:36 +0000 2013,Plume test1,Plume for Android,126.897899,37.535298
  Mon Mar 11 11:40:36 +0000 2013,Plume test1,Plume for Android,126.897899,37.535298
  Mon Mar 11 11:40:36 +0000 2013,Plume test1,Plume for Android,126.897899,37.535298
  </code></pre>