Analyze collaborations between famous musicians
Download Neo4j desktop and create a database. It can be in a new or preexisting project.
Note the database uri/url, password, and username.
If you don't have Spotify API credentials, go to this site, make an application, and store the client id and client secret.
Fill out the config.py file with the information from previous two sections.
CLIENT_ID = ""
CLIENT_SECRET = ""
DB_PASSWORD = ""
DB_URL = ""
DB_USERNAME = ""
pip install -r requirements.txt
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
Start the Flask server by running
python app.py
Thanks to Siddharth Lakkoju for feedback on ideas and setting up the Neo4j Aura DB used for the Heroku deployment.