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

List Index Error for "metadata" Variable #25

Open
ereizas opened this issue Jun 24, 2023 · 5 comments
Open

List Index Error for "metadata" Variable #25

ereizas opened this issue Jun 24, 2023 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@ereizas
Copy link

ereizas commented Jun 24, 2023

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:

  1. Turn on VPN
  2. Follow the example flow to set up and call getLyrics()

Expected behavior
I expected for the search lyrics to work as normal and return lyrics if they can be found via its process.

Screenshots
If applicable, add screenshots to help explain your problem.
image

@ereizas
Copy link
Author

ereizas commented Jul 1, 2023

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.

@elmoiv
Copy link
Owner

elmoiv commented Jul 11, 2023

You can get free proxues from many websites. This is one you can use:
https://free-proxy-list.net/

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
          )

@elmoiv elmoiv added the help wanted Extra attention is needed label Jul 11, 2023
@ereizas
Copy link
Author

ereizas commented Jul 14, 2023

Thank you! Have you been able to find the rate limit for AZ's API? I can't find anything.

@ereizas ereizas closed this as completed Jul 14, 2023
@ereizas ereizas reopened this Jul 14, 2023
@ereizas
Copy link
Author

ereizas commented Jul 14, 2023

I integrated proxies, but am still getting the same issue @elmoiv

@nberkow
Copy link

nberkow commented Jul 23, 2023

I'm also getting this error with and without proxies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants