xHossein / PyPasser

Bypassing reCaptcha V3 by sending HTTP requests & solving reCaptcha V2 using speech to text engine.
MIT License
482 stars 106 forks source link

Bug for custom site #1

Closed JeanQuiTest closed 2 years ago

JeanQuiTest commented 2 years ago

i have try this:

from pypasser import reCaptchaBypasser
from pypasser.structs import CustomSite
import requests

config = CustomSite('api2', 'ar=1&k=6Lfd5wobAAAAACjTkOIXohTrPz9RIhNwRqRq2_R9&co=aHR0cHM6Ly92b2lyYW5pbWUuY29tOjQ0Mw..&hl=fr&v=wxAi4AKLXL2kBAvXqI4XLSWS&size=normal&cb=kmspryghc969')
reCaptcha_response = reCaptchaBypasser(config)

error:

    config = CustomSite('api2', 'ar=1&k=6Lfd5wobAAAAACjTkOIXohTrPz9RIhNwRqRq2_R9&co=aHR0cHM6Ly92b2lyYW5pbWUuY29tOjQ0Mw..&hl=fr&v=wxAi4AKLXL2kBAvXqI4XLSWS&size=normal&cb=kmspryghc969')
TypeError: __init__() takes 2 positional arguments but 3 were given

after this:

from pypasser import reCaptchaBypasser
from pypasser.structs import CustomSite
import requests

config = CustomSite('api2', 'https://www.google.com/recaptcha/api2/anchor?ar=1&k=6Lfd5wobAAAAACjTkOIXohTrPz9RIhNwRqRq2_R9&co=aHR0cHM6Ly92b2lyYW5pbWUuY29tOjQ0Mw..&hl=fr&v=wxAi4AKLXL2kBAvXqI4XLSWS&size=normal&cb=kmspryghc969')
reCaptcha_response = reCaptchaBypasser(config)

error:

    config = CustomSite('api2', 'https://www.google.com/recaptcha/api2/anchor?ar=1&k=6Lfd5wobAAAAACjTkOIXohTrPz9RIhNwRqRq2_R9&co=aHR0cHM6Ly92b2lyYW5pbWUuY29tOjQ0Mw..&hl=fr&v=wxAi4AKLXL2kBAvXqI4XLSWS&size=normal&cb=kmspryghc969')
TypeError: __init__() takes 2 positional arguments but 3 were given

and this:

from pypasser import reCaptchaBypasser
from pypasser.structs import CustomSite
import requests

config = CustomSite('https://www.google.com/recaptcha/api2/anchor?ar=1&k=6Lfd5wobAAAAACjTkOIXohTrPz9RIhNwRqRq2_R9&co=aHR0cHM6Ly92b2lyYW5pbWUuY29tOjQ0Mw..&hl=fr&v=wxAi4AKLXL2kBAvXqI4XLSWS&size=normal&cb=kmspryghc969')
reCaptcha_response = reCaptchaBypasser(config)

error:

  File "XXXXX", line 6, in <module>
    reCaptcha_response = reCaptchaBypasser(config)
  File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python39\lib\site-packages\pypasser\__init__.py", line 49, in __new__
    recaptcha_response = cls.get_recaptcha_response(data['endpoint'],
  File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python39\lib\site-packages\pypasser\__init__.py", line 82, in get_recaptcha_response
    raise RecaptchaResponseNotFound()
pypasser.exceptions.RecaptchaResponseNotFound: Recaptcha response not found.

but all don't work, please help me ^^

xHossein commented 2 years ago

Since version 0.0.31 , CustomSite only gets anchor_url. So your 1st and 2nd errors due to that.

And in 3rd error you got RecaptchaResponseNotFound exception, it means you can't bypass recaptcha for that site. Check here to know more about RecaptchaResponseNotFound exception.