-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
List Index Error for "metadata" Variable #25
Comments
I realize that this is most likely because of an IP ban. I would appreciate any advice on how to use a proxy to avoid the issue. |
You can get free proxues from many websites. This is one you can use: To use a proxy in azapi: from azapi import AZLyrics
proxies = {
'http': 'http://proxy.example.com:8080',
'https': 'http://secureproxy.example.com:8090',
}
API = azapi.AZlyrics(
'google',
accuracy=0.5,
proxies=proxies
) |
Thank you! Have you been able to find the rate limit for AZ's API? I can't find anything. |
I integrated proxies, but am still getting the same issue @elmoiv |
I'm also getting this error with and without proxies |
Description:
When a computer on the same network is using VPN, there is a List Index Error for the "metadata" variable in azapi.py. When I printed the variable, its value was "["\r\n Our systems have detected unusual activity from your IP address (computer network). \r\n This page checks to see if it's really you sending the requests, and not a robot.\r\n "]
This error still lingers even after I turn off my VPN.
Steps to reproduce the behavior:
Expected behavior
I expected for the search lyrics to work as normal and return lyrics if they can be found via its process.
Screenshots
![image](https://private-user-images.githubusercontent.com/71237683/248505957-1386cc59-c599-4453-8285-7d36321e9b59.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4MTI5MTEsIm5iZiI6MTcxOTgxMjYxMSwicGF0aCI6Ii83MTIzNzY4My8yNDg1MDU5NTctMTM4NmNjNTktYzU5OS00NDUzLTgyODUtN2QzNjMyMWU5YjU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAxVDA1NDMzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThjMDkyMTFiYzg5YzQ5NjhlMDQyNGM1MjY3MTliNTQ2YjBiY2RkN2VmZTQxYzFhYzFmYWMwMTdkZjU3ZWY1MmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0xKyXZ8i_9gL8en5aMHdzWLKhlnLbslTzkW-9u0FXGk)
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: