Skip to content

Instantly share code, notes, and snippets.

@raelga
Created July 22, 2018 12:40
Show Gist options
  • Save raelga/13f3588d47cb9d20ecc866b1693caf14 to your computer and use it in GitHub Desktop.
Save raelga/13f3588d47cb9d20ecc866b1693caf14 to your computer and use it in GitHub Desktop.
for u in $(curl -sq https://destinytracker.com/d2/clan/427309/the-packets | sed -n 's@.*clanmembers = \(.*\)</script>@\1@p' | jq -c '.[] | { id: .DestinyUserInfo.membershipId, name:.DestinyUserInfo.displayName }' 2>/dev/null); do echo "$(echo $u | jq -c '.name') - Last played on $(curl -sq https://destinytracker.com/d2/api/profile/2/$(echo $u | jq -r -c '.id' )/recentgames | jq -c '.matches | .[0].period' 2>/dev/null)"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment