Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -euo pipefail
(($# == 2)) || (echo "usage: $0 <instance> <user>" >&2; exit 64)
instance=$1 user=$2
next="https://${instance}/users/${user}/followers?page=1"
while [[ ${next} != "null" ]]; do
readarray -t urls < <(
curl -SsfH 'accept: application/activity+json' "${next}" \