# Ruby Recipe book: Import Kindle clippings to MongoDB

Published: 2012-07-05
Tags: Development, Zombie Quick Posts

<blockquote>Update:&nbsp;Gist <a href="https://gist.github.com/3059207">here</a></p></blockquote>
<blockquote><p>Update:&nbsp;Code updated to mitigate duplication (a hopefully sufficient) checksum</p></blockquote>
<p>Simple, quick and dirty way to get your kindle clippings (that My Clippings.txt file that sits on your kindle with notes and quotes) into a database, in this case MongoDB (so it can be even quicker and dirtier )</p>
<ol>
<li>Get your kindle file</li>
<li>Get the kindleclippings gem and/or code&nbsp;<a href="https://github.com/georgboe/kindleclippings">https://github.com/georgboe/kindleclippings</a></li>
<li>Get mongo and the ruby driver&nbsp;<a href="http://www.mongodb.org/">http://www.mongodb.org/</a></li>
<li>A dirty script<br />
     <script src="http://gist.github.com/3059207.js?file=import_clippings.rb"></script>
   </li>
<li>Get off my lawn :)</li>
</ol>
