Skip to content
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

Musixmatch API limitation? #36

Open
jagauthier opened this issue May 17, 2024 · 1 comment
Open

Musixmatch API limitation? #36

jagauthier opened this issue May 17, 2024 · 1 comment

Comments

@jagauthier
Copy link

After writing a script to parse my music and download lyrics I've found that after several queries I'll start getting an exception like this:

File "musixmatch.py", line 90, in get_lrc
tracks = body["track_list"]

This seems to be related to some API limitation. If I sit for a few minutes, (5-6) I can execute queries again.
Is this limitation documented, and is there some way to capture it?

@moehmeni
Copy link
Owner

Yeah similar to #35, I made a commit to handle non-200 status code to return None so we request next providers. It seems it is a captcha from what I see in API JSON:

{'message': {'header': {'status_code': 401, 'execute_time': 0.0026848316192627, 'hint': 'captcha'}, 'body': []}}

@moehmeni moehmeni changed the title API limitation? Musixmatch API limitation? May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants