Created
July 19, 2012 16:51
-
-
Save samrat/3145260 to your computer and use it in GitHub Desktop.
Python file to convert Goodreads-exported CSV to markdown friendly list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
books = csv.reader(open('goodreads_export.csv', 'rb')) | |
output_file = open('books.md', 'a') | |
for row in books: | |
if 'read' in row: | |
output = "- **"+row[1]+"** by " + row[2] + "\n" | |
output_file.write(output) | |
print outpu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Incidentally, I've written a GoodReads CSV-Markdown compiler using Pandoc; you can see the results here.