Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orengrinker/nbastreamlit
A Streamlit application to view NBA games and news, showcasing modularity in Python code organization.
https://github.com/orengrinker/nbastreamlit
nba nbaapi streamlit streamlit-webapp
Last synced: 3 days ago
JSON representation
A Streamlit application to view NBA games and news, showcasing modularity in Python code organization.
- Host: GitHub
- URL: https://github.com/orengrinker/nbastreamlit
- Owner: OrenGrinker
- Created: 2024-03-10T15:40:21.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-10T15:50:47.000Z (11 months ago)
- Last Synced: 2024-12-16T20:15:46.834Z (about 2 months ago)
- Topics: nba, nbaapi, streamlit, streamlit-webapp
- Language: Python
- Homepage:
- Size: 246 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NBA Games Viewer
A Streamlit application to view NBA games and news, showcasing modularity in Python code organization.
## Features
- View NBA games by date with team logos.
- Fetch and display the latest NBA news.
- Modular Python codebase for better organization and maintenance.## Installation
First, clone the repository:
```bash
git clone https://github.com/OrenGrinker/NBAStreamlit
cd NBAStreamlit
```
Then, install the required dependencies:
```bash
pip install -r requirements.txt
```
## API KeyTo fetch NBA data, you need an API key from Sportsdata.io:
- Visit Sportsdata.io.
- Register for an account and log in.
- Navigate to the API keys section and generate a new API key for the NBA API.## Project Structure
- app.py: The main Streamlit application file.
- nba_utils.py: Contains utility functions for fetching and displaying NBA games and news.
- team_logos.py: Holds the dictionary mapping team abbreviations to their logo URLs.
UsageRun the Streamlit application:
```bash
streamlit run app.py
```Enter your API key in the sidebar within the app to start fetching NBA games and news data.
## Screenshot
![NBAStreamlit](https://raw.githubusercontent.com/OrenGrinker/NBAStreamlit/main/Screenshot%202024-03-10%20at%2017.39.22.png)