damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 52ca33ef6ac5e2ee7d1b4afc081de47748005896
parent 1769b081474287396a14580f2522a785b180c644
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 24 May 2023 18:26:18 -0700

script: fetch popular users

Diffstat:
Adevtools/fetch-popular-users | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/devtools/fetch-popular-users b/devtools/fetch-popular-users @@ -0,0 +1,8 @@ +#!/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