I use pylast to get information from Last.fm API.
When I use the code below:
#!/usr/bin/env python
import pylast
API_KEY = "############################"
API_SECRET = "##############################"
###### In order to perform a write operation you need to authenticate yourself
username = "########"
password_hash = pylast.md5("###########")
network = pylast.LastFMNetwork(api_key = API_KEY, api_secret = API_SECRET, username = username, password_hash = password_hash)
## _________INIT__________
COUNTRY = "United Kingdom"
#---------------------- Get Geo Country --------------------
geo_country = network.get_country(COUNTRY)
print "The country we are digging is", geo_country
#---------------------- Get artist --------------------
top_artists_of_country = geo_country.get_top_artists(limit = 1000)
top_artists_of_country_file = open('test_artist_number.txt', 'w+')
print >> top_artists_of_country_file, top_artists_of_country
top_artists_of_country_file.close()
I found that I cannot get, for instance, 1000 records when I call
geo_country.get_top_artists(limit = 1000)
I just want to know, is this limitation caused by Last.fm’s API setings or by pylast?
Any help would be great:)
It is a limitation of Last.fm.