Giter VIP home page Giter VIP logo

usau-scraper's Introduction

SWE at MongoDB working on networking and performance of the core database, among other things.

Formally:

๐Ÿ”ง Head of Engineering at Columbia Daily Spectator, where I led a team that built and launched https://www.columbiaspectator.com/ and https://lionclubs.info/.

๐Ÿ“š CS student at Columbia University, with a focus on database systems.

website linkedin

erin2722

usau-scraper's People

Contributors

cherieliu avatar erin2722 avatar

Watchers

 avatar  avatar  avatar

Forkers

cherieliu

usau-scraper's Issues

Rankings Function (pagination and specific data)

Add in the ability to filter the rankings responses.

Add in competitionDivision, collegeRegion, collegeConference, and numResults fields.

The "data" field should be as follows, which is where we will put competitionDivision, collegeRegion, and collegeConference:
Screen Shot 2023-05-01 at 3 12 29 PM

__EVENTTARGET: CT_Main_0$lnkViewAll should also be in the data field to avoid having to deal with the nitty gritty of pagination.

In addition, add in the team URI to the results, so that other functions can query with it specifically.

buildTeamDict only gets first 196 teams

buildTeamDict() works by incrementing the "__EVENTTARGET" attribute -- however, when it goes above 9, it stops filtering and just returns the first 20 teams in the whole db. Also, 00 skips the first page and goes straight to the second.

How to fix this?

Rankings Function (Basic Capabilites)

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.

Link formatting for club vs. college

In tournament-scraper, the link format for college tournaments contains CollegeWomen, but for club, it is Club-Women. Because of this, club results are inaccessible.

Change the link format to be conditional on club vs. college.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.