Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eigenvivek/spoti-graph
Python package for social network analysis of Spotify artists
https://github.com/eigenvivek/spoti-graph
network-analysis python
Last synced: 24 days ago
JSON representation
Python package for social network analysis of Spotify artists
- Host: GitHub
- URL: https://github.com/eigenvivek/spoti-graph
- Owner: eigenvivek
- Created: 2019-04-30T17:08:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T23:10:53.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T00:28:20.895Z (about 1 month ago)
- Topics: network-analysis, python
- Language: Python
- Homepage:
- Size: 196 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spotify Networks
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/v715/Spotify-Net/master)Spoti-Graph allows you to construct and analyze networks of related artists on Spotify!
## Overview
Spoti-Graph interfaces with the [Spotify Web API](https://developer.spotify.com/documentation/web-api/) to obtain all related artists. You provide a starting artist, and the program executes a depth-first search to find neighbors. Two artists are connected by an edge if they have collaborated on a popular song or if Spotify lists them as related.## Installation & Demo
To run install the package, execute the following:
```
git clone https://github.com/v715/Spoti-Graph
cd Spoti-Graph
pip install -r requirements.txt
```At this point, you'll need to get authentifcation from the Spofity API. See [here]() for instructions on how to do that. Make a new file called `credentials.py` in the main directory and store your `Client ID` and `Client ID Secret` in it.
Run the demo using `python demo.py`. Here's the result!
![demo](demo/farruko.png)