This one is intended to be service-independent. Takes a plain list of undecorated URLs in a text file.
for i in `cat urllist.txt`; do
echo "-- $i --";
URL=`http https://$i/.well-known/nodeinfo | jq '.links[0].href'`;
http "${URL//\"/}" | jq '{software, usage}' ;
done
-- lemmy.world --
{
"software": {
"name": "lemmy",
"version": "0.18.5"
},
"usage": {
"users": {
"total": 148527,
"activeHalfyear": 29905,
"activeMonth": 10758
},
"localPosts": 226976,
"localComments": 1818411
}
}
-- pipesmarks.glitch.me --
{
"software": {
"name": "postmarks",
"version": "0.0.1"
},
"usage": {
"users": {
"total": 1,
"activeMonth": 1,
"activeHalfyear": 1
},
"localPosts": 107
}
}
-- macaw.social --
{
"software": {
"name": "mastodon",
"version": "4.2.4"
},
"usage": {
"users": {
"total": 1062,
"activeMonth": 283,
"activeHalfyear": 465
},
"localPosts": 62060
}
}
-- bookrastinating.com --
{
"software": {
"name": "bookwyrm",
"version": "0.7.1"
},
"usage": {
"users": {
"total": 3703,
"activeMonth": 525,
"activeHalfyear": 2101
},
"localPosts": 106055
}
}
-- pixelfed.social --
{
"software": {
"name": "pixelfed",
"version": "0.11.9"
},
"usage": {
"localPosts": 17041454,
"localComments": 0,
"users": {
"total": 106611,
"activeHalfyear": 28192,
"activeMonth": 10263
}
}
}