import pprint
import sys

from search import search
from search import *
import spotipy
import spotipy.util as util

scope = 'playlist-modify-public'
username = "victorsch52"
token = util.prompt_for_user_token(username, scope, client_id='089776be79914d7f8d3a4a87594f4463', client_secret='079b16e58d3c480c8e55263caed0c284', redirect_uri='http://localhost/')

def addsong(username, song, playlist_id):
	track_id = search(song).split()
	print(track_id)
	sp = spotipy.Spotify(auth=token)
	sp.trace = False
	results = sp.user_playlist_add_tracks(username, playlist_id, track_id)
	print(results)




b598b84a45363700d705fd00c0a8587913f2e530
<mask token>

<mask token>


def addsong(username, song, playlist_id):
    track_id = search(song).split()
    print(track_id)
    sp = spotipy.Spotify(auth=token)
    sp.trace = False
    results = sp.user_playlist_add_tracks(username, playlist_id, track_id)
    print(results)

<mask token>
scope = 'playlist-modify-public'
username = 'victorsch52'
token = util.prompt_for_user_token(username, scope, client_id=
    '089776be79914d7f8d3a4a87594f4463', client_secret=
    '079b16e58d3c480c8e55263caed0c284', redirect_uri='http://localhost/')


def addsong(username, song, playlist_id):
    track_id = search(song).split()
    print(track_id)
    sp = spotipy.Spotify(auth=token)
    sp.trace = False
    results = sp.user_playlist_add_tracks(username, playlist_id, track_id)
    print(results)

import pprint
import sys
from search import search
from search import *
import spotipy
import spotipy.util as util
scope = 'playlist-modify-public'
username = 'victorsch52'
token = util.prompt_for_user_token(username, scope, client_id=
    '089776be79914d7f8d3a4a87594f4463', client_secret=
    '079b16e58d3c480c8e55263caed0c284', redirect_uri='http://localhost/')


def addsong(username, song, playlist_id):
    track_id = search(song).split()
    print(track_id)
    sp = spotipy.Spotify(auth=token)
    sp.trace = False
    results = sp.user_playlist_add_tracks(username, playlist_id, track_id)
    print(results)

import pprint
import sys

from search import search
from search import *
import spotipy
import spotipy.util as util

scope = 'playlist-modify-public'
username = "victorsch52"
token = util.prompt_for_user_token(username, scope, client_id='089776be79914d7f8d3a4a87594f4463', client_secret='079b16e58d3c480c8e55263caed0c284', redirect_uri='http://localhost/')

def addsong(username, song, playlist_id):
	track_id = search(song).split()
	print(track_id)
	sp = spotipy.Spotify(auth=token)
	sp.trace = False
	results = sp.user_playlist_add_tracks(username, playlist_id, track_id)
	print(results)



