This is a Python script for backing up your reviews, shelves and statuses from Goodreads. It is based on both bjaanes/goodreads-backup and alexwlchan/backup-goodreads.
This script requires Python 3. Create a virtualenv and install dependencies:
$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt
You need to set up three things before you can use the script:
- Make your Goodreads reviews public. This script only uses the basic API, not OAuth, and so private reviews can't be backed up.
- Get your Goodreads user ID. This is the 8-digit number in the URL of
your profile page. For example, if your user page is
https://www.goodreads.com/user/show/12345678-john-smith
, then your user ID is12345678
. - Get a developer API key from the Goodreads website.
Run the script, passing your user ID and API key as command-line flags:
$ python backup_goodreads.py --user-id=12345678 --api-key=abcdefg123
Alternatively, these details can be set using keyring
.
See its documentation
for how this is done.
To see other options, run with the --help
flag:
$ python backup_goodreads.py --help
This script is licensed under the MIT license.