This data comes from The Blue Alliance and was based on the following metric need:
How many teams compete each year?
The problem: TBA sorts everything by year, then event and there isn’t a basic Total for number of teams each year. So you have to
- Get all of the event codes for each year and save them to a list.
- From that years list poll TBA for all of the events and team numbers at the event. Add them all to a list if they weren’t counted for that year already
- Add 1 to the yearly total count
- Move onto the next year
2022 doesn’t work for some reason but the other years seem correct. I manually checked 1992-1996 to make sure it was accurate and working and debugged most of this throughout the day
A member of FRC 1050 was also helping me as I played around here. This was my first time using the TBA API so I thought this came out really well.