GithubHelp home page GithubHelp logo

d3-spotify's Introduction

This is a python script that allows you to populate a json file ingestable by d3 force-directed graph. Data contains your Playlist/Track information from Spotify.

1.) Clone this repo

KirboCannon >> git clone https://github.com/kirbocannon/d3-spotify

KirboCannon >> cd d3-spotify

2.) Setup virtual environment (optional)

KirboCannon >> virtualenv -p python3 venv
KirboCannon >> source venv/bin/activate

3.) Install requirements

(venv) KirboCannon >> pip install -r requirements.txt

4.) Create credentials.yaml file in the same directory as the spotify_script.py file

You must create your tokens using the Spotify developer site. Once you have this information, create the yaml file containing the credentials.

username: {spotify_username}
client_id: {spotify_client_id}
client_secret: {spotify_client_secret}

5.) Run script and generate file

(venv) KirboCannon >> python spotify_script /location/to/all/the/things

6.) Now you can import the postman collection and edit the collection variable to the URL of your data.

Postman collection name: visualization.postman_collection.json

d3-spotify's People

Contributors

kirbocannon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.