SpotifyStatictics
Языки
HTML
- CSS
- Python
- JavaScript
Spotify Music Profile Statistics Web App
This repository contains a web application built on Flask that allows users to log in using their Spotify accounts and view their music profile statistics. The app was created with the idea of sharing beautiful music profiles, enabling users to explore their music listening habits and statistics in an aesthetically pleasing manner.
Features
- User authentication through Spotify accounts
- View personalized music statistics
- Attractive visualizations to present the data in an engaging manner
- Easy sharing options to showcase music profiles with friends and social networks
Installation
- Clone the repository to your local machine:
git clone https://github.com/dmhd6219/SpotifyStatictics.git
- Create a virtual environment and activate it (optional but recommended):
cd SpotifyStaticticspython -m venv venvsource venv/bin/activate
- Install the required dependencies:
pip install -r requirements.txt
Configuration
To run the web application, you will need to set up a Spotify Developer account and obtain the necessary API credentials. Follow these steps:
- Go to the Spotify Developer Dashboard and log in with your Spotify account.
- Create a new application and note down the
andClient ID
.Client Secret - In the project directory, create a new file named
and add the following lines:.env
SPOTIPY_CLIENT_ID = 'your_spotify_client_id'SPOTIPY_CLIENT_SECRET = 'your_spotify_client_secret'SPOTIPY_REDIRECT_URI = 'http://localhost:8080/callback' # Change this if required
Replace
and
with the credentials obtained in step 2.
Usage
- Run the Flask development server:
python main.py
-
Open your web browser and go to
.http://localhost:8080 -
Click on the "Login with Spotify" button to authenticate using your Spotify account.
-
Once logged in, you'll be able to explore your music profile statistics and visualize your music preferences.
Deployment
To deploy the web app for public use, consider using platforms like Heroku, AWS, or others that support Flask applications.
Contributing
Contributions are welcome! If you want to add new features, fix bugs, or improve the existing codebase, feel free to open a pull request.
License
This project is licensed under the MIT License.
Enjoy exploring and sharing your music profile statistics with the world! 🎶📊
Screenshots