azapi icon indicating copy to clipboard operation
azapi copied to clipboard

List Index Error for "metadata" Variable

Open ereizas opened this issue 1 year ago • 10 comments

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 avatar Jun 24 '23 18:06 ereizas

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.

ereizas avatar Jul 01 '23 20:07 ereizas

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 avatar Jul 11 '23 12:07 elmoiv

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

ereizas avatar Jul 14 '23 15:07 ereizas

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

ereizas avatar Jul 14 '23 16:07 ereizas

I'm also getting this error with and without proxies

nberkow avatar Jul 23 '23 00:07 nberkow