Skip to content

Instantly share code, notes, and snippets.

@MC42 MC42/output.txt Secret
Created May 17, 2019

Embed
What would you like to do?
frc115 1998
frc1323 2004
frc148 1992
frc1678 2005
frc179 1998
frc1902 2006
frc1939 2006
frc2046 2007
frc2122 2007
frc254 1999
frc2682 2008
frc2907 2009
frc3132 2010
frc3310 2010
frc3574 2011
frc3646 2011
frc3847 2011
frc4192 2012
frc4201 2012
frc4322 2012
frc498 2001
frc5026 2014
frc6485 2017
frc6579 2017
frc6829 2018
frc6986 2018
frc7179 2018
frc931 2002
frc948 2002
frc971 2002
frc973 2002
import requests
baseURL = 'http://www.thebluealliance.com/api/v3/'
header = {'X-TBA-Auth-Key':'(my key is here)'}
def getTBA(url):
return requests.get(baseURL + url, headers=header).json()
teamsAtChamps = getTBA("event/2019cmptx/teams")
for team in teamsAtChamps:
print(team['key'] + "\t" + str(team['rookie_year']))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.