Skip to main content

Library that helps you search for baseball players stats and trends in order to help with fantasy lineup construction

Project description

FantasyBaseballTrends

Build Status codecov Crates.io GitHub issues PyPI Github Pages Docs readthedocs

Overview

This library scrapes specific hitter stats from BaseballReference. The purpose of this library is to provide fantasy owners a chance to see how the players in their lineup have been performing over a number of games and how they perform against a certain pitcher. This will help facilitate their daily lineup constuction and to see which players on the wire are having a hot streak as well as players that have been trending downwards.

Instalation

To install, run the following:

pip install FantasyBaseballTrends

Usage

Projected Stats

This function will return a specific hitters projected offensive stats for the 2023 season.

get2023Projected(browser, player)

Last Game Stats

This function will return all of offensive stats of a players most recent game.

getLastGame(browser, player)

Current stats vs RHP

This function will return a players current season hitting stats against right handed pitchers.

getVsRhpCurrent(browser, player)

Current stats vs LHP

This function will return a players current season hitting stats against left handed pitchers.

getVsLhpCurrent(browser, player)

Career Splits

This function will return a hitter's carrer splits. The returning data frame is split up by the opposing pitchers handedness and if they are a starter or not.

getCareerSplits(browser, player)

Stats over number of games

This funciton will return a hitter's stats over a user specified number of games.

getLastxGames(browser, player, gamesNum)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FantasyBaseballTrends-0.1.2.tar.gz (16.8 kB view details)

Uploaded Source

File details

Details for the file FantasyBaseballTrends-0.1.2.tar.gz.

File metadata

  • Download URL: FantasyBaseballTrends-0.1.2.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.3

File hashes

Hashes for FantasyBaseballTrends-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e69ca342807bdb44278afe7199a9ab186c371b6edebf986aa3dd3ad48297bfa3
MD5 874f3b6de837dbde9715c266a95dae33
BLAKE2b-256 891101ab0ac7116b1c1f193ef17149ae0704d63a10cd1b59dc6e21fbfaf626ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page