Created
October 3, 2023 17:48
-
-
Save 0xJohnnyGault/a9cd17b742d069fe7d1c9fd884839da7 to your computer and use it in GitHub Desktop.
In the Arena
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://api.starsarena.com/trade/users/trending \ | |
--silent \ | |
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36' \ | |
-H 'Authorization: Bearer <YOUR TOKEN HERE>' \ | |
| jq '[.users[]] | sort_by(.twitterFollowers) | .[] | {twitterHandle: .twitterHandle, twitterName: .twitterName, twitterFollowers: .twitterFollowers, price: ((.keyPrice|rtrimstr("000000000")|tonumber)/1000000000) }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment