How does pyechonest (Echo Nest python library) collect data about current artists locally?

249 Views Asked by At

I installed the pyechonest module to do some fun music analysis and I was wondering how does pyechonest return current data on artists? Does it access a database hosted online every time I run a python script on my machine?

1

There are 1 best solutions below

2
On

This can be done by the function pyechonest.artist.search

I will provide you a sample code from the documentation.

from pyechonest import artist

results = artist.search(description=['synthpop'], buckets=['id:7digital', 'id:musicbrainz'], results=5)

for something in results: //the rest of your code

More details can be found here