Skip to content

BigDataProject-2023/NBA_Predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basketball-Reference Webcrawler

Scrapy-based webcrawler which collects all data for a specific NBA season from basketball-reference.com.

Prerequisites

Requires the scrapy and pandas python packages to be installed.

Usage

The webcrawler can be started from the project directory using the command

scrapy crawl basketball-reference -a season=2020

where the season for which data should be collected is given by the season argument (default is current season).

Run

Use this cmd below in your terminal. Must change the csv or .py files' path if you needable

python3 run.py -xgb -odds=fanduel (args for model & odds data)

Dataset

  • odds data : Odds data collecting with sbrscrape, scraping FanDuel odds data ➡️ test.py
      python3 test.py
    year = ["2023", "2024"] , season = ["2023-24"] ➡️ change year with when you want to discover
    in odds data, you can access tomorrow's betting info. ➡️ bet_api.py, accessable with your own key {https://api.the-odds-api.com/v4/sports}
  • season data : Seasonal data collecting with https://www.basketball-reference.com/leagues/NBA_{self.season}_games.html site.➡️ br_spider.py
      scrapy crawl basketball-reference -a season=2020 ➡️ crawl command, change season args with when you want.
  • merged data : merge odds data & season data with [date, home, away] ➡️ data_preprocess.py

Result

result

About

nba 경기 승부 예측 프로그램

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •