def get_sp_ids(tracks, sp):
	"""
	Given a list of tracks, return a list of track ids by using spotipy's search endpoint
	tracks: list of title artist strings
	sp: spotipy object
	"""

	track_ids = []
	no_matches = []

	# loop through tracks
	for track in tracks:
		search_results = sp.search(track, limit=1)
		try:
			track_id = search_results['tracks']['items'][0]['id']
			track_ids.append(track_id)
		except IndexError:
			no_matches.append(track)

	return track_ids, no_matches