jitacm / -30DaysDevChallenge-

Welcome to the 30DayDevChallenge repository! This repository is dedicated to a month-long coding challenge designed to help developers of all levels enhance their skills through daily coding tasks and projects.
20 stars 27 forks source link

NBA LeaderBoard/30_Days_of_Python #306

Open pratikshabhujade opened 1 month ago

pratikshabhujade commented 1 month ago

"National Basketball Association" Leaderboard Application This Python application interacts with the "National Basketball Association" (NBA) API to fetch and display real-time game scores and team statistics. It uses the requests library to make HTTP requests and processes JSON data from the NBA's online resources.

Features Scoreboard Fetching: Retrieves the current scoreboard, showing live NBA game scores, periods, and clock status. Team Stats Leaderboard: Displays the league's top teams based on points per game (PPG), along with rankings and additional stats.

Requirements Python 3.x Requests library: You can install it using pip install requests PrettyPrinter (for clean output formatting)

Customizing API Requests To fetch specific data, you can modify the API request URL to include parameters such as year, language, and season. This allows you to retrieve information based on different seasons, languages, and specific years. Adjust these parameters in the URL according to your needs:

Base URL: https://cdn.nba.com Scoreboard Endpoint: /static/json/liveData/odds/odds_todaysGames.json Team Stats Endpoint: /static/json/liveData/odds/odds_todaysGames.json

Simply append your desired parameters to these URLs to tailor the data retrieval to your requirements.

Screenshot 2024-08-13 124018

github-actions[bot] commented 1 month ago

Thank you for creating this issue! 🎉

We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our [CONTRIBUTING.md] for guidelines on contributing to this Domain.