Home
get-pleroma-instances.sh - gopher-lawn - The gopher lawn gopher directory project. HTML git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/ DIR Log DIR Files DIR Refs DIR Tags --- get-pleroma-instances.sh (307B) --- 1 #!/bin/sh 2 3 JQ="jq" 4 5 sed 's,",\\",g; s,$,\\n,' <<-EOF \ 6 | tr -d '\n' \ 7 | sed 's,^\(.*\)$,{"query":"\1"},' \ 8 | curl -s -H'Content-Type: application/json' --data-binary @- https://api.fediverse.observer/ \ 9 | $JQ -r '.data.nodes[].domain' 10 { 11 nodes(softwarename: "pleroma", status: "UP") { 12 domain 13 } 14 } 15 EOF