elmoiv / azapi

Get Lyrics from AZLyrics.com like a Boss ~(0_0)~
GNU General Public License v3.0
121 stars 12 forks source link

Get captcha response when I try to run #24

Open brandonmcgraw opened 1 year ago

brandonmcgraw commented 1 year ago

Describe the bug I've uploaded the script to a pythonanywhere instance and am using flask to return results to a website. For any query type I get the response: "Type the characters from the picture above: Input is case-insensitive Submit"

It looks like maybe it's catching a captcha or similar bot detector.

I'm assuming that a proxy might be what is required to bypass - would you mind providing instructions for how to use one - I see the feature flag but wasn't sure how to do it if you think that's what's causing this?

ereizas commented 1 year ago

@brandonmcgraw I most likely have the same issue too, and I also think that it is probably because of an IP ban that proxies would help bypass. This is what I found on stackoverflow:

http_proxy  = "http://10.10.1.10:3128"
https_proxy = "https://10.10.1.11:1080"
ftp_proxy   = "ftp://10.10.1.10:3128"

proxies = { 
              "http"  : http_proxy, 
              "https" : https_proxy, 
              "ftp"   : ftp_proxy
            }

r = requests.get(url, headers=headers, proxies=proxies)

I believe you would have to create proxy servers with new IP addresses which I do not know how to do with Python.