Skip to content

An unofficial wrapper for interacting with hCaptcha challenges.

License

Notifications You must be signed in to change notification settings

acierp/py-hcaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-hcaptcha

An unofficial wrapper for interacting with hCaptcha challenges.

  • Not an automatic solver (yet).
  • Device must be running Windows with Google Chrome installed.
  • Some parts of the code need to be changed frequently and therefore may be written in a sloppy way.

Install

pip install git+https://github.com/h0nde/py-hcaptcha

Usage

import hcaptcha

ch = hcaptcha.Challenge(
    site_key="f5561ba9-8f1e-40ca-9b5b-a0b3f719ef34",
    site_url="https://discord.com/",
    #http_proxy="user:pass@127.0.0.1:8888",
    #ssl_context=__import__("ssl")._create_unverified_context(),
    timeout=5
)

print(ch.question["en"])

for tile in ch:
    image = tile.get_image(raw=False)
    image.show()
    if input("answer (y/n): ").lower() == "y":
        ch.answer(tile)

try:
    token = ch.submit()
    print(token)
except hcaptcha.ChallengeError as err:
    print(err)

About

An unofficial wrapper for interacting with hCaptcha challenges.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages