Skip to main content

Miniflux Workflow

As I read through my articles on Miniflux I use the "Star" function with the letter f shortcut to add them to my favorites list.

When it's time to make a daily blogpost with those links, I run the following commands to output a Markdown formatted bulleted list with the article title and URL already in place:

touch `date +%Y-%m-%d`.md
echo "# `date '+%B %d, %Y'`" >> `date +%Y-%m-%d`.md
echo "" >> `date +%Y-%m-%d`.md
~/projects/blog/fetch.sh >> `date +%Y-%m-%d`.md
~/projects/blog/reset.sh
tip

Adding -d "tomorrow" works to pre-load a blog entry.

The contents of my fetch and reset scripts are as follows:

#!/bin/bash
API_URL="https://reader.miniflux.app/v1"
TOKEN=""

curl -s -H "X-Auth-Token: $TOKEN" "$API_URL/entries?starred=true" | jq -r '.entries[] | "- [\(.title)](\(.url))"'

and a slightly more complicated reset:

#!/bin/bash

API_URL="https://reader.miniflux.app/v1"
TOKEN=""

# Fetch all starred entry IDs
entry_ids=$(curl -s -H "X-Auth-Token: $TOKEN" "$API_URL/entries?starred=true" | jq '.entries[].id')

echo $entry_ids

# Unstar each entry
for id in $entry_ids; do
curl -s -X PUT "$API_URL/entries/$id/bookmark" \
-H "X-Auth-Token: $TOKEN" \
-H "Content-Type: application/json"
done