Skip to content

Automated IPL fantasy team optimizer using machine learning and web scraping

License

Notifications You must be signed in to change notification settings

CodeByRachit/fantasy-cricket-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏏 Fantasy Cricket Team Optimizer

This project provides a complete pipeline to scrape, process, predict, and optimize fantasy cricket teams for the Indian T20 League (IPL) using machine learning and linear programming.

It includes:

✅ Real-time player data scraping from ESPN Cricinfo
✅ Merging with historical batting, bowling, and venue performance data
✅ Training an XGBoost regression model to predict fantasy points
✅ Optimizing team selection under realistic rules
✅ Generating a recommended playing XI with captain and vice-captain
✅ Docker support for easy deployment


📂 Project Structure

fantasy-cricket-optimizer/
├── satte.py
├── requirements.txt
├── Dockerfile
├── .gitignore
├── .gitattributes
├── LICENSE
├── README.md
├── data/
│   ├── Final_batter_ipl.csv
│   ├── bowler_ipl.csv
│   ├── wicketkeeper_ipl.csv
│   ├── batter_vs_bowler_head_to_head_2024.csv
│   ├── batter_venue_stats_2023_2024.csv
│   ├── bowler_performance_by_venue_2023_2024.csv
│   ├── teamwise_home_and_away.csv
│   ├── player_credits.csv
│   ├── Match_day_stadium.csv
│   └── SquadPlayerNames_IndianT20League.xlsx
├── models/
│   └── xgb_fantasy_model.pkl (generated after training)
└── outputs/
    └── FantasyPredictors_output.csv

About

Automated IPL fantasy team optimizer using machine learning and web scraping

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published