This script generates an RSS feed from your Storygraph reading history. It fetches your read books from Storygraph and creates an RSS feed that can be used with any RSS reader.
- Node.js
- npm (Node Package Manager)
- A Storygraph account
- Clone the repository:
git clone https://github.com/benbrown/storygraph-rss.git
cd storygraph-rss- Install dependencies:
npm install- Create a
.envfile in the project root:
cp .env.example .env- Edit the
.envfile with your settings:
# Your Storygraph username
STORYGRAPH_USER=your_username
# The output file for the RSS feed
OUTPUT_FILE=feed.xml
# Your Storygraph session cookie (see instructions below)
SESSION_COOKIE=_storygraph_session=your_session_cookie_here
# Feed metadata
FEED_TITLE="My Reading History"
FEED_DESCRIPTION="Books I've read on Storygraph"
FEED_URL="https://yourdomain.com/feed.xml"
FEED_SITE_URL="https://yourdomain.com"- Log in to Storygraph
- Open your browser's developer tools (F12 or right-click -> Inspect)
- Go to the Application/Storage tab
- Look for Cookies under Storage
- Find the
_storygraph_sessioncookie - Copy its value and paste it into your
.envfile
Run the script to generate your RSS feed:
node updateFeed.jsThe script will:
- Fetch your reading history from Storygraph
- Generate an RSS feed with your read books
- Save the feed to the specified output file
Each feed item includes:
- Book title and author
- Date finished reading
- Book cover image
- Link to the book on Storygraph
MIT License - feel free to use this code for your own projects!