Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

Help Needed with the API

$
0
0

Hi!

Actually, you can ignore my previous message. I saw the examples in the documentation and figured that out. However, I tried running it over several ids as once( I put the ids in an array, and even tried taking input from the user), but an error occurs which I am not able to handle. Here's the code I am using

import sys
sys.path.append("C:\Users\parveen\Desktop\pyechonest-master")
from pyechonest import config
config.ECHO_NEST_API_KEY="MY KEY"
from pyechonest import song
#inputfile = open("C:\MSD\data\songids.txt","r")
song_ids=['SOVLGJY12A8C13FBED','SOMZWCG12A8C13C480']
for i in range (len(song_ids)):
s = song.Song(song_ids[i])
print s.audio_summary['tempo']

And I get the following error, which I am not able to interpret, Free Web Proxy.

Could someone please help me with his? If their is an alternative to it via track methods, please let me know since I tried that as well but failed.

Thank You,

Aakash


Viewing all articles
Browse latest Browse all 1582

Trending Articles