-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyitunes.ServiceException: Error: #28
Comments
Hi can you provide a more complete example? |
@ocelma Sure. First of all I changed the ISO code according to my country (India) which is "IN" and then install the api as given in the instructions. The reason for doing this is , may be it would give better results if i set the store to "IN" rather than default i,e. "US" as i want only Indian songs to be retrieved but not any foreign song. I have a file in which i have information regarding a 'name of song' and its 'movie name' in which occurs and the 'year' of the movie. I took only song_name as query for each song and then search it using The objective is to retrieve genre_information using For example, consider the file retrieve from here. According to this website all the songs were of "indian rock music" genre. This file contains 2 columns :- song_info (left side) and genre (right side). These genres were retrieved from itunes_api in a batch of 40 files at time. "no_genre" is given by me for those who didn't get searched by itunes.search method. Evert left hand side entry is of format :- 'year_movie_song.txt' , where year :- movie year , movie :- movie name , song :- song name . Problem :- When i process them all in a row then error occurs. Hope this helps. If u need any more information please ask me as your response to this issue is much valuable to me. I choose this api as i found no other which provide me the genre_info of Indian songs. |
Is there any limit to number of search queries (
items = itunes.search(query=song_name)
) made with itunes api as i am getting this error after processing for songs greater than 47 in a row.Traceback (most recent call last): File "<stdin>", line 1, in <module> File "itunes/__init__.py", line 677, in search offset=offset, order=order, country=store).get() File "itunes/__init__.py", line 149, in get self._json_results = self._request(cacheable=is_caching_enabled()) File "itunes/__init__.py", line 140, in _request return _Request(method_name, params).execute(cacheable) File "itunes/__init__.py", line 96, in execute raise self._get_error(e.fp.read()) pyitunes.ServiceException: Error:
Once i get this error, it throws back same unexpectedly on any other further made query.
What is the real issue behind this and how to avoid this (if possible) ?
The text was updated successfully, but these errors were encountered: