py-transcend

Python utilties for managing Transcend data.


License
MIT
Install
pip install py-transcend==0.0.3

Documentation

transcend

Public library to access and manipulate Transcend data

Install

$ pip install transcend

Usage

import transcend

CLIENT_ID = 'client_id'
CLIENT_SECRET = 'secret_key'
APP_ID = '1'

# Requests a large amount of data, run this cell sparingly
users = transcend.request_data(CLIENT_ID, CLIENT_SECRET, APP_ID)
users

# select a single user
user = users[1]

# View the raw json object for this user
user.raw_data

# See what services this user has
user.services

# view the raw json for a particular service
spotify_data = user.data['spotify'].raw_data
spotify_data

# Toggle through json and view object as a dataframe
pd.DataFrame(spotify_data['followedArtists'])

# example: facebook albums
pd.DataFrame(user.data['facebook'].raw_data['userEdges']['albums'])