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

Bug for custom site #1

Closed
JeanQuiTest opened this issue Sep 10, 2021 · 1 comment
Closed

Bug for custom site #1

JeanQuiTest opened this issue Sep 10, 2021 · 1 comment

Comments

@JeanQuiTest
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants