Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rankings Function (Basic Capabilites) #23

Closed
erin2722 opened this issue Apr 28, 2023 · 1 comment
Closed

Rankings Function (Basic Capabilites) #23

erin2722 opened this issue Apr 28, 2023 · 1 comment

Comments

@erin2722
Copy link
Owner

erin2722 commented Apr 28, 2023

Add a function that scrapes the team rankings page of the USAU website: https://play.usaultimate.org/teams/events/team_rankings/?RankSet=Club-Women

For now, don't worry about the more specific information in the dropdown menus or pagination, just write a function to scrape the first 20 teams from the rankings page and input the data into a JSON response.

Function Signature:

getRankings(
competitionLevel=<'College' or 'Club'>,
genderDivision=<'Women' or 'Men' or (for Club only) 'Mixed' >,
)

The link should be:
https://play.usaultimate.org/teams/events/team_rankings/?RankSet={competitionLevel}-{genderDivision}

The output format should be:

{
res: "ok" or "not found"
teams: [
    {
        Rank, Team, Power Rating, Competition Level, Gender Division, Competition Division, College Region, College 
        Conference, Wins, Losses
    },
    ...
}

for college,

and the same format but with the row headers for club.

@erin2722 erin2722 changed the title Rankings Function Rankings Function (Basic Capabilites) May 1, 2023
@erin2722
Copy link
Owner Author

erin2722 commented May 4, 2023

closed with #27

@erin2722 erin2722 closed this as completed May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant