Follow

simple script to pull your fedi timeline:

#!/usr/bin/env bash

set -eou pipefail

timeline=${1:-home}

curl -sL -H "Authorization: Bearer $FEDI_TOKEN" "$FEDI_ENDPOINT/api/v1/timelines/$timeline" |
jq -r '.[] | [.account.username, .content] | @tsv' |
sed 's,<[^>]*>,,g' |
column -t -s $'\t' |
sed 's,$,\n,g' |
less

@loosy what do you mean save it? It just spits out plaintext from the activity json. It's not perfect wrt. formatting but it's a good start if you're looking to build your own fedi scripts.

Sign in to participate in the conversation
Bitcoin Mastodon

Bitcoin Maston Instance