GithubHelp home page GithubHelp logo

znarfois / get_spotify_data Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rcalindayu/get_spotify_data

0.0 1.0 0.0 19.59 MB

obtain song and user playlists data using Spotify webAPI

Jupyter Notebook 99.72% Python 0.28%

get_spotify_data's Introduction

get_spotify_data

Obtain data from the Spotify worldwide ranking chart and tracks and user playlists data using Spotify webAPI

0. Setting up your spotify credentials

Follow the instructions at the Spotify for Developers Quick Start page and follow up to the Set Up Your Account section. Alternatively, you may follow this tutorial

Make a new app and copy the Client ID and Secret Code.

1. scrape_spotify_charts.py

Based from automated data collection from Spotify's worldwide ranking in 50+ countries from edumucelli. A snapshot of the data collected by the code has been published at Kaggle datasets.

On the command line, run by:

python scrape_spotify_charts.py

or alternatively, in the jupyter notebook

%run scrape_spotify_charts.py

Specify the desired region, start and end date, and directory.

2. consolidate_spotify_daily_charts.ipynb

Use this notebook to consolidate the daily charts data into monthly and a single unified file

3. set_credentials.ipynb

Install the keyring package

pip install keyring 

The Python keyring library provides an easy way to access the system keyring service from python. It can be used in any application that needs safe password storage.

Run the notebook. Keyring will ask for your Spotify Client ID and Secret Code and safely hold it in your device.

For the notebooks below, please also install the spotipy python module

pip install spotipy

4. get_spotify_track_artist_data.ipynb

Use this notebook to get Spotify track data for the tracks ranking in the daily charts data

5. get_spotify_playlists.ipynb

Use this notebook to get spotify playlists based on a spotipy query object

get_spotify_data's People

Contributors

jcacperalta avatar

Watchers

James Cloos 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.