-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
lyrics: Detect when you get blocked by Musixmatch #2632
Comments
workaround: to reset the state of the database and clear those bad entries, use the following command:
seems to me we should have a way to do throttling or something to workaround that block. FWIW, i was able to download about 20k titles before getting blocked. |
Sure; sounds good. Just checking whether the string "We detected that your IP is blocked." is in the response should do it. Until someone writes a hit song about rate limiting… 😃 |
hehe... i also figured out this is just a CAPTCHA page you can fill in to get your free pass... so it's not as bad as a complete UA block, it seems. |
PR coming up in #2634. |
Problem
My IP seems to have been blocked by musixmatch. Some of the lyrics downloaded say:
It seems the problem is resolved now because I can't reproduce with a regular web browser. It would be nice, however, to detect such scenarios and not record the problematic lyrics. I am not sure how to do this - I don't know if a different status code gets sent, but maybe we can do a simple regex-based pattern-matching technique?
Thanks!
The text was updated successfully, but these errors were encountered: