From c6195a883664f2efbd52532a3baa4e34eee1002b Mon Sep 17 00:00:00 2001 From: jlevine18 Date: Fri, 22 Mar 2019 14:54:55 -0500 Subject: [PATCH] add req_team_info --- data analysis/tbarequest.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data analysis/tbarequest.py b/data analysis/tbarequest.py index 15d02925..a5b02ab2 100644 --- a/data analysis/tbarequest.py +++ b/data analysis/tbarequest.py @@ -32,6 +32,12 @@ __all__ = [ import requests #as this code is public, i'm not putting 2022's API key in here. just add it as a var in your script and go +#requests basic team info +def req_team_info(team,apikey): + headers={'X-TBA-Auth-Key':apikey} + r=requests.get('https://www.thebluealliance.com/api/v3/team/frc'+str(team)+'/simple/',headers=headers) + return r + #requests a list of events that a team went to def req_team_events(team,year,apikey): headers={'X-TBA-Auth-Key':apikey}