{"repo":"dcstats/CBBpy","free":true,"listed":false,"github":"https://github.com/dcstats/CBBpy","clone":"git clone https://github.com/dcstats/CBBpy.git","description":"A Python-based web scraper for NCAA basketball.","language":"Python","stars":28,"topics":["basketball","data","ncaa","ncaa-basketball","scraper","scraping","web-scraper","web-scraping","python"],"license":"Apache-2.0","category":"scrapers-browser-automation","readme_excerpt":"CBBpy: A Python-based web scraper for NCAA basketball Purpose This package is designed to bridge the gap between data and analysis for NCAA D1 basketball. CBBpy can grab play-by-play, boxscore, and other game metadata for any NCAA D1 men's or women's basketball game. Inspired by the ncaahoopR package by Luke Benz - check that out if you are an R user! Installation and import CBBpy requires Python = 3.9 as well as the following packages: pandas =2.0.0 numpy =2.0.0 python-dateutil =2.4.0 pytz =2022.1 tqdm =4.63.0 lxml =4.9.0 joblib =1.0.0 beautifulsoup4 =4.11.0 requests =2.27.0 rapidfuzz =3.9.0 platformdirs =4.0.0 Install using pip: Or upgrade an existing installation: The men's and women's scrapers can be imported as such: Functions available in CBBpy NOTE: game ID, as far as CBBpy is concerned, is a valid ESPN game ID s.get game info(game id: Union[str, int]) grabs all the metadata (game date, time, score, teams, referees, etc) for a particular game. s.get game boxscore(game id: Union[str, int]) returns a pandas DataFrame with each player's stats for a particular game. s.get game pbp(game id: Union[str, int]) scrapes the play-by-play tables for a game and returns a pandas DataFrame, with each entry representing a play made during the game. s.get game(game id: Union[str, int], info: bool = True, box: bool = True, pbp: bool = True) gets all information about a game (game info, boxscore, PBP) and returns a tuple of results (game info, boxscore, pbp) . info, box, pbp are booleans","default_branch":null,"files":null,"tree":[],"storefront":"/r/dcstats","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dcstats/CBBpy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}