mirror of
git://jb55.com/damus
synced 2024-10-06 11:43:21 +00:00
9 lines
500 B
Bash
Executable File
9 lines
500 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
curl $(curl -s 'https://storage.googleapis.com/storage/v1/b/nostrdb-backups/o?prefix=ndjson' | jq -r '.items | last | .mediaLink') > nostr-directory.json
|
|
|
|
jq -rc '.data | {url: .profileImageUrl, pk: .hexPubKey, userName: .userName, twitterFollowers: .user.followers_count, nostrFollowers: .nFollowerCount}' nostr-directory.json | jq -cs 'sort_by(.twitterFollowers + .nostrFollowers) | .[]' | tail -n1000 | tac > popular_users.json
|
|
|
|
printf "saved popular_users.json\n" >&2
|