Skip to content

outhmane96/B-try

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

B-Try

Fantasy Premier League Optimizer 🏆⚽

Welcome to B-Try the Fantasy Premier League Optimizer! This Python project is designed to help you create the ultimate Fantasy Premier League (FPL) team by leveraging data from public APIs related to the English Premier League (EPL). Whether you're a seasoned FPL manager or a beginner, this tool will provide you with insights, statistics, and recommendations to dominate your league.


🎯 Goal

The goal of this project is to:

  1. Explore and analyze EPL player data from public APIs.
  2. Optimize your Fantasy Premier League team by recommending the best players based on:
    • Player performance metrics (goals, assists, clean sheets, etc.).
    • Player value (cost vs. points).
    • Fixture difficulty (upcoming matches).
    • Injuries, suspensions, and other factors.
  3. Provide actionable insights to help you make informed decisions for your FPL team.

📊 APIs Used

This project may utilizes the following public APIs to gather data:

  1. Official Fantasy Premier League API

    • Provides real-time data on player stats, fixtures, and FPL-specific information (e.g., player prices, ownership percentages, and points).
  2. Football-Data.org

    • Offers comprehensive data on EPL fixtures, teams, and player statistics.
    • 10 calls per minutes
  3. API-Football

    • Provides live scores, fixtures, standings, and player performance data.
    • 100 call per day
  4. Understat API

    • Not official library to consume Understat will explore it and see the potential

🛠️ Features

This project includes the following features:

  1. Player Performance Analysis:

    • Analyze player statistics such as goals, assists, clean sheets, and bonus points.
    • Compare players based on their performance over the season.
  2. Fixture Difficulty Rating (FDR):

    • Evaluate upcoming fixtures and assign a difficulty rating to help you decide which players to pick.
  3. Team Optimization:

    • Use algorithms to suggest the best starting XI and bench players within your budget.
    • Consider player form, fixture difficulty, and value for money.
  4. Injury and Suspension Alerts:

    • Get real-time updates on player injuries, suspensions, and availability.
  5. Customizable Recommendations:

    • Input your preferences (e.g., preferred formation, favorite players) to get personalized recommendations.
  6. Visualizations:

    • Generate charts and graphs to visualize player performance, fixture difficulty, and team value.

🚀 How It Works

  1. Data Collection:

    • Fetch data from the APIs mentioned above.
    • Store the data in a structured format (e.g., JSON, CSV, or a database).
  2. Data Processing:

    • Clean and preprocess the data to extract relevant features.
    • Calculate metrics such as player form, fixture difficulty, and value for money.
  3. Optimization Algorithm:

    • Use optimization techniques (e.g., linear programming, genetic algorithms) to select the best team within the FPL budget.
  4. User Interface:

    • Provide a command-line interface (CLI) or a simple web app for users to interact with the tool.
  5. Output:

    • Display the optimized team, player recommendations, and visualizations.

🛠️ Installation

  1. Clone the repository:

    git clone https://github.com/your-username/fantasy-premier-league-optimizer.git
    cd fantasy-premier-league-optimizer
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Run the application:

    python main.py

🤝 Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Submit a pull request with a detailed description of your changes.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.


🙏 Acknowledgments

  • Thanks to the creators of the APIs used in this project for providing free access to football data.
  • Inspired by the Fantasy Premier League community and their passion for data-driven decisions.

Happy optimizing, and may your FPL team rise to the top! 🏆⚽

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •