notnotjeff / prospect-scraper

Scraping hockey prospects from multiple development leagues
3 stars 0 forks source link

Get all seasons for prospect back #105

Open notnotjeff opened 2 years ago

notnotjeff commented 2 years ago

Return all seasons for a prospect instead of just current season (or passed season)

Usage

prospectScraper.seasonsScraper.ahl({ playerId: '7314' })

prospectScraper.seasonsScraper.allsv({ firstName: 'Jesper', lastName: 'Lindgren', teamId: '110b-110bJcIAI' })

Returns:

{
  data: {
    seasons: [
      {
        season: "2021-2022",
        startYear: 2021,
        endYear: 2022,
        seasonType: "regular", // could also be "playoffs"
        gamesPlayed: 1,
        goals: 1,
        assists: 1,
        points: 2,
        shots: 1,
        plusMinus: 1,
        // Any other stats that are there
      }
    ]
  }
}
notnotjeff commented 2 years ago

List of leagues with JSON:

kylehgc commented 2 years ago

call a function of the league with the necessary information.

returns array of json objects with all stats for all seasons with:

necessity:
goals assists points shots games_played what season it is

any of these stats as well with normalized names: position: number: penaltyMinutes gameWinningGoals powerplayGoals hits blocks onIceGF (+) on ice goals for
onIceGA (-) on ice goals against plusMinus(on ice gf - on ice ga) toiPerGame (time on ice per game)