{"id":21573563,"url":"https://github.com/falkern/spotifav","last_synced_at":"2025-03-18T06:27:18.010Z","repository":{"id":258772665,"uuid":"875675599","full_name":"Falkern/spotifav","owner":"Falkern","description":"A python based cli tool that fetches tracks from a specified spotify playlist and provides song recommendations based on those tracks.","archived":false,"fork":false,"pushed_at":"2024-10-20T15:55:40.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T13:16:05.641Z","etag":null,"topics":["cli","music","open-source","python","recommendation-system","script","spotify","spotify-api","tools","useful"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Falkern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-20T15:50:51.000Z","updated_at":"2024-10-20T15:55:44.000Z","dependencies_parsed_at":"2024-10-21T21:37:50.769Z","dependency_job_id":null,"html_url":"https://github.com/Falkern/spotifav","commit_stats":null,"previous_names":["falkern/hikaru"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Falkern%2Fspotifav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Falkern%2Fspotifav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Falkern%2Fspotifav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Falkern%2Fspotifav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Falkern","download_url":"https://codeload.github.com/Falkern/spotifav/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244168363,"owners_count":20409506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","music","open-source","python","recommendation-system","script","spotify","spotify-api","tools","useful"],"created_at":"2024-11-24T12:07:23.422Z","updated_at":"2025-03-18T06:27:17.967Z","avatar_url":"https://github.com/Falkern.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playlist Recommendation Tool\n\nThis project is a Python-based tool that fetches tracks from a specified Spotify playlist and provides song recommendations based on those tracks. It utilizes the Spotify Web API through the `spotipy` library.\n\n## Features\n\n- Fetch tracks from a given Spotify playlist.\n- Generate song recommendations based on the fetched tracks.\n- Display recommended songs with their names and artists.\n\n## Requirements\n\n- Python 3.6 or higher\n- `spotipy` library\n- `python-dotenv` library\n\n## Setup\n\n1. Clone the repository:\n\n   ```sh\n   git clone https://github.com/Falkern/spotifav.git\n   cd spotifav\n   ```\n\n2. Install the required libraries:\n\n   ```sh\n   pip install spotipy python-dotenv\n   ```\n\n3. Create a `.env` file in the root directory and add your Spotify API credentials:\n   ```env\n   SPOTIPY_CLIENT_ID='your_client_id'\n   SPOTIPY_CLIENT_SECRET='your_client_secret'\n   SPOTIPY_REDIRECT_URI='http://localhost:8080/callback'\n   ```\n\n## Usage\n\n1. Run the script with the Spotify playlist ID:\n\n   ```sh\n   python playlist.py \u003cplaylist_id\u003e --limit \u003cnumber_of_recommendations\u003e\n   ```\n\n   Example:\n\n   ```sh\n   python playlist.py 37i9dQZF1DXcBWIGoYBM5M --limit 10\n   ```\n\n2. The script will fetch tracks from the specified playlist and print out song recommendations.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any changes.\n\n## Acknowledgements\n\n- [Spotipy](https://spotipy.readthedocs.io/) - A lightweight Python library for the Spotify Web API.\n- [Spotify for Developers](https://developer.spotify.com/) - Official Spotify Web API documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffalkern%2Fspotifav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffalkern%2Fspotifav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffalkern%2Fspotifav/lists"}