diff options
author | Ben Sima <ben@bsima.me> | 2021-12-15 13:08:10 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-12-15 13:08:10 -0500 |
commit | 8749935f4be2d685b6a77d8e31d4ce91726c12a3 (patch) | |
tree | db1aded8c500c160cab9a26121b81062da512f5d | |
parent | ca1349154510aa4fd693d81a47db90fd8ab46ad0 (diff) |
simple fedi script
-rwxr-xr-x | fedi | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# + set -eou pipefail + timeline=${1:-home} + endpoint="https://bitcoinhackers.org" +# + curl -sL \ + -H "Authorization: Bearer i-baQt_tYmJ_NA8F4VcXBe2x1ZLaOBvRayHhzYzEP3Y" \ + "$endpoint/api/v1//timelines/$timeline" \ + | jq -r '.[] | [.account.username, .content] | @tsv' \ + | sed 's,<[^>]*>,,g' \ + | column --table --separator $'\t' --table-wrap 2 --output-width 80 \ + | sed 's,$,\n,g' +# |