This repo contains two scripts for migrating Goodreads book reviews into Jekyll.
goodreads-api-to-jekyll.php
- A PHP script which used the now-deprecated API to create Jekyll files.goodreads-export-to-jekyll.py
- A Python 3 script which uses CSV exports from Goodreads to create Jekyll files.The repo is highly customized to my own personal website, and is probably not suitable (out of the box) for yours. However, it should not be very difficult to adjust for your own setup.
goodreads_library_export.csv
in the same folder as goodreads-export-to-jekyll.py
.reviews
in the same folder as goodreads_library_export.py
.docker run -it --volume="$PWD:/src" --rm python:3 python /src/goodreads-export-to-jekyll.py
reviews/*.md
into your own website's Jekyll collection, in my case this command looks something like mv reviews/*.md ~/website/_bookreviews
.cd ~/website ; git add . ; git commit -sm 'Add reviews
)The code is pretty quick-and-dirty, and doesn't really obey typical SOLID principles. It gets the job done for me, but if you'd like to improve it, you're more than welcome! I'm happy to collaborate, contributions highly encouraged.