Skip to content

saahithjanapati/musician-connections

Repository files navigation

musician-connections

Analyze collaborations between famous musicians

Direct Collaborations

Collaboration Path

Link to YouTube Video

Link to Heroku Deployment

Running locally

Neo4j Database

Download Neo4j desktop and create a database. It can be in a new or preexisting project.

Note the database uri/url, password, and username.

Spotify API Credentials

If you don't have Spotify API credentials, go to this site, make an application, and store the client id and client secret.

config.py file

Fill out the config.py file with the information from previous two sections.

CLIENT_ID = ""
CLIENT_SECRET = ""


DB_PASSWORD = ""
DB_URL = ""
DB_USERNAME = ""

Install dependecies

pip install -r requirements.txt

Populate database

Run the populate_database.py script to get data for artists and add it to the Neo4j graph database. This took me about an hour for 500 artists.

python populate_database.py

Run app.py

Start the Flask server by running

python app.py

Acknowledgements

Thanks to Siddharth Lakkoju for feedback on ideas and setting up the Neo4j Aura DB used for the Heroku deployment.