Created
April 22, 2016 18:09
-
-
Save tipabu/c3e94e768a171d8bdaf4d9a7c882d8a1 to your computer and use it in GitHub Desktop.
Get the next ten Giants home games
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
#!/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