This is a quick and dirty weekend project I did that scrapes StoryGraph profiles and outputs a markdown file which can be read by Hugo the static site generator.
- Have a Public StoryGraph profile
- This is necessary if you want to scrape your book reviews without being singed in.
- By default profiles are only visible to other people with accounts, but this can be changed in your account settings.
- Your website is created using Hugo, the static site generator
- If you aren't using Hugo, this script can be pretty easily modified to output whatever format.
- Clone my github repo
- Change "username" to your StoryGraph username on line 3 of storygraph.bash
- Run storygraph.py
- Move books.md into your Hugo content directory
- Either copy my style.css to your static directory or modify your own style.css
- Make sure you are using the right theme in your Hugo config
- Use the "hugo" command to generate your site
- (Optional) Create a cron job which automatically runs the script then replaces your books.md on a set interval so your website auto updates with your StoryGraph profile