Git Product home page Git Product logo

24.02_katadata_music_taste's Introduction

Music taste

The code and data to produce Katadata's "Selera Musik di Indonesia Cenderung Lagu Sedih" story.

Note

The analysis has been updated for reproduction. Hence, the data in this repository are expected to be different from the ones that originally appear in the story.

Getting started

You need R (and RStudio) to run this analysis project.

Since this repository is an R project, open 24.02_katadata_music_taste.Rproj to launch it.

The project uses the renv package to manage dependencies and ensures reproducibility.

Spotify setup

The analysis uses data such as playlists and audio features from Spotify, which are available through its Application Programming Interface (API).

You need to set up a Spotify account and create an app for its Web API on the developer platform (see Getting started with Web API). The app is necessary as you'll need its client ID and secret to get an access token to authorize your request.

Then, you need to supply the client ID and secret to the spotifyr package (see Authorization code flow).

Example

You can produce the analysis by running run_all.R in the src folder. This is the controller script that runs other scripts to perform every step of the analysis from start to finish.

Caution

You may hit the API's rate limit when running the scripts multiple times within a short period (see Rate Limits). In such cases, you have to wait for several hours before you can successfully make a request again.

You can run the script in your RStudio interactively or using the console like so.

source("src/run_all.R")

You can also run each script individually.

License

This project is licensed under the MIT License.

24.02_katadata_music_taste's People

Watchers

Dzul 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.