Skip to main content

A music recommendation system

Project description

MUSIC_RECOMMENDATION

A music recommendation system using Spotify's API and cosine similarity to suggest songs based on a user's chosen track.

Features

  • Fetches top 50 tracks from Spotify Japan Weekly Ranking
  • Analyzes track features such as danceability, energy, loudness, etc.
  • Recommends similar tracks based on cosine similarity

Installation

  1. Clone the repository:

    git clone https://github.com/sayamiyaji/MUSIC_RECOMMENDATION.git
    cd MUSIC_RECOMMENDATION
    
  2. Create a virtual environment and activate it:

    python -m venv music
    source music/bin/activate
    
  3. Install the required packages:

    pip install -r requirements.txt
    

Usage

  1. Set up your Spotify API credentials:

  2. Export your Spotify API credentials:

    export SPOTIPY_CLIENT_ID='your_client_id'
    export SPOTIPY_CLIENT_SECRET='your_client_secret'
    export SPOTIPY_REDIRECT_URI='http://localhost:8080'
    
  3. Run the web application:

    python -m your_project.app
    
  4. Open your web browser and go to http://localhost:5000

Project Structure

music-recommendation/ ├── data/ # データ保存用 ├── notebooks/ # Jupyter Notebooks用 ├── src/ # ソースコード │ ├── init.py │ └── recommender.py ├── requirements.txt # 必要なパッケージリスト └── README.md # プロジェクト説明

Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-foo)
  3. Commit your changes (git commit -am 'Add some foo')
  4. Push to the branch (git push origin feature-foo)
  5. Create a new Pull Request

License

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

Acknowledgements

  • Spotipy - A lightweight Python library for the Spotify Web API
  • Flask - A micro web framework written in Python

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MUSIC_RECOMMENDATION-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MUSIC_RECOMMENDATION-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file MUSIC_RECOMMENDATION-0.1.0.tar.gz.

File metadata

  • Download URL: MUSIC_RECOMMENDATION-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.16

File hashes

Hashes for MUSIC_RECOMMENDATION-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f868e28af75cd93fb7372a2d3e75f3e1a8ad3ad815cc0f4ff5b36076db4464e3
MD5 a919b2a8d18a7ace6f10b107ceef4142
BLAKE2b-256 25c4278e843e03a1a9204d07a7b556a2146ecc5fe603d13c90d76d4556b526f0

See more details on using hashes here.

File details

Details for the file MUSIC_RECOMMENDATION-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for MUSIC_RECOMMENDATION-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d2a924fd0c7c06e984ae6b51e1a835ff4bf965ca839c462595993a044a427f4
MD5 faa752733f39b926165ccfc670c4cbb5
BLAKE2b-256 08486794571e28bedfcfbaab24628b9a745228fb4b8d3bd3dd124329bcda2224

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page