![]() |
Pulling a List of Teams into Excel
For the past year, I've been using Excel's web queries to pull a list of teams attending the event. The process is relatively simple, go to frclinks.com/event/gadu, point to the table that contains the information, and *bam*, done.
However, recently, the web queries have been failing, and the information isn't showing up. I'm at a bit of a loss and am wondering if anyone else is either (a) seeing a similar failure and (b) has a solution that let's me continue to avoid parsing through the HTML. Thanks, - Sunny G. |
Re: Pulling a List of Teams into Excel
Quote:
Complete data cam be found at: https://github.com/the-blue-alliance/tba-data-backup Edit: We will provide a CSV dump of all teams (name, sponsors, location, etc.) in the near future. |
Re: Pulling a List of Teams into Excel
Quote:
- Sunny G. |
Re: Pulling a List of Teams into Excel
FIRST added a check on the HTTP Referer header around the time that divisions came out, preventing direct access to event team lists unless linked there from the FIRST website itself. This was presumably to save their server from the deluge of traffic from the various "are divisions out yet" scrapers.
I have a workaround that makes FRCLinks still work, but unfortunately Excel will keep running into that HTTP Referer issue, since it tries to access the data directly at that https://my.usfirst.org URL that FRCLinks redirects to. |
Re: Pulling a List of Teams into Excel
Quote:
Dear Frank, Please get your IT guys straightened out and provide a method for FIRST developers to get their info! Thanks, All of FIRST |
Re: Pulling a List of Teams into Excel
Is the block just for event teams list? I didn't seem to have a problem with my scouting database macros when I access Team Standing and Match Results.
|
Re: Pulling a List of Teams into Excel
Quote:
|
Re: Pulling a List of Teams into Excel
Quote:
|
Re: Pulling a List of Teams into Excel
I have another spreadsheet that gets the team lists from usfirst website directly and it still works. How do we access through the my.usfirst for team list? I must not have used it that way.
|
Re: Pulling a List of Teams into Excel
Quote:
You can't directly navigate to https://my.usfirst.org/myarea/index....014&event=casj due to the reason Pat mentioned above. FRCLinks has a redirect hack that makes it work. What page do you use to get team lists that's not a my.usfirst page? |
Re: Pulling a List of Teams into Excel
If you need only current data (and not anything historical):
https://my.usfirst.org/frc/scoring/i...page=eventlist contains and ID_event column, which you can use like https://my.usfirst.org/frc/scoring/i...ID_event=10837 (for Traverse City). Is this good enough? |
Re: Pulling a List of Teams into Excel
Quote:
Quote:
Interesting, - Sunny G. |
Re: Pulling a List of Teams into Excel
Quote:
I was tired last night and got confused. I thought I was pulling team list data from another place. It turns out my other spreadsheet pulls in match schedule and determine the team list that way. It is only useful after match schedule is out and before matches begin. |
Re: Pulling a List of Teams into Excel
Quote:
|
Re: Pulling a List of Teams into Excel
The referrer check is just on https://my.usfirst.org/myarea URLs. The https://my.usfirst.org/frc/scoring URLs are used by FMS to download team lists when setting up at an event. They're tab-separated tables, so they're easier to parse but uglier to look at which is why I implemented the hack in FRCLinks instead of redirecting to them.
You can get the event IDs by looking at the list of all events: https://my.usfirst.org/frc/scoring/index.lasso I'm guessing there's no referrer check on them because then FMS would have had to add that header in its data download requests. |
| All times are GMT -5. The time now is 22:59. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi