Skip to content

Instantly share code, notes, and snippets.

@tipabu
Created April 22, 2016 18:09
Show Gist options
  • Save tipabu/c3e94e768a171d8bdaf4d9a7c882d8a1 to your computer and use it in GitHub Desktop.
Save tipabu/c3e94e768a171d8bdaf4d9a7c882d8a1 to your computer and use it in GitHub Desktop.
Get the next ten Giants home games
#!/bin/sh
curl http://sanfrancisco.giants.mlb.com/ticketing-client/json/EventTicket.tiksrv \
-s -G -d team_id=137 \
-d venue_id=2395 \
-d site_section=SCHEDULE \
-d begin_date=`date +"%Y%m%d"` | \
jq -r '.events.game | limit(10; .[]) |
"\(.game_time_home) \(.away_name_full)" '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment