SMOLNET PORTAL home about changes
get-pleroma-instances.sh - gopher-lawn - The gopher lawn gopher directory project.
(URL) git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/ (git://bitreich.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
---
get-pleroma-instances.sh (315B)
---
1 #!/bin/sh
2 sed 's,",\\",g; s,$,\\n,' <<-EOF \
3 | tr -d '\n' \
4 | sed 's,^\(.*\)$,{"query":"\1"},' \
5 | curl -s -H'Content-Type: application/json' --data-binary @- https://api.fediverse.observer/ \
6 | jaq '$1 == ".data.nodes[].domain" { print $3 }'
7 {
8 nodes(softwarename: "pleroma", status: "UP") {
9 domain
10 }
11 }
12 EOF
Response: application/gopher-menu
Original URLgopher://bitreich.org/1/scm/gopher-lawn/file/fediverse/ge...
Content-Typeapplication/gopher-menu; charset=utf-8