GithubHelp home page GithubHelp logo

embium / solverecaptchas Goto Github PK

View Code? Open in Web Editor NEW
103.0 4.0 23.0 148.19 MB

An async Python library to automate solving ReCAPTCHA v2 using Playwright.

Python 100.00%
python captcha asyncio playwright playwright-python speech-recognition speech-to-text image-classification image-recognition solve-recaptcha

solverecaptchas's Introduction

PyPI PyPI - Python Version PyPI - License PyPI - Status

Solverecaptchas

An async Python library to automate solving ReCAPTCHA v2 using Playwright.

Disclaimer

This project is for educational and research purposes only. Any actions and/or activities related to the material contained on this GitHub Repository is solely your responsibility. The misuse of the information in this GitHub Repository can result in criminal charges brought against the persons in question. The author will not be held responsible in the event any criminal charges be brought against any individuals misusing the information in this GitHub Repository to break the law.

Trained model

I've trained a model that detects each of the following classes which support 9x grid.

  1. bicycle
  2. boat
  3. bridge
  4. bus
  5. car
  6. chimneys
  7. crosswalk
  8. fire hydrant
  9. motorcycles
  10. mountains or hills
  11. palm trees
  12. stair
  13. taxi
  14. tow truck
  15. traffic light
  16. traffic sign
  17. truck

This model can be downloaded from https://mikey.id/yolov3.weights. I've provided the other necessary files under model/.

Compatibility

Linux, macOS, and Windows!

Installation

$ pip install solverecaptchas

Usage

If you want to use it in your own script

import asyncio
import sys

from solverecaptchas.solver import Solver

if len(sys.argv) == 4:
     pageurl, sitekey, proxy = sys.argv[1:]
else:
     print('Invalid number of arguments (pageurl, sitekey, proxy)')
     sys.exit(0)

if proxy.lower() == "none":
     proxy = None

client = Solver(pageurl, sitekey, proxy=proxy)
result = asyncio.run(client.start())
if result:
     print(result)

solverecaptchas's People

Contributors

embium avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

solverecaptchas's Issues

Error when pip installing

I get the following error... any ideas?

Collecting solverecaptchas
  Using cached solverecaptchas-0.1.6.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
  Using cached solverecaptchas-0.1.5.tar.gz (10 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-f5d10gal/solverecaptchas_074c8d6e02594604bf8b534756e371a8/setup.py", line 50, in <module>
          install_requires=load_requirements("requirements.txt"),
        File "/tmp/pip-install-f5d10gal/solverecaptchas_074c8d6e02594604bf8b534756e371a8/setup.py", line 15, in load_requirements
          with open(fname) as f:
      FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Need yolo weights

I really appreciate this project, but the link is down, I need yolo weights

How to use it on my own code ?

Hi

I would like to use this captchas solver on my code but have a problem.

I wish go to a url and then resolve captcha (using playwright)

So I had proceed like this:

with sync_playwright() as p:

browser = p.chromium.launch(headless=False, slow_mo=130)

page = browser.new_page()

page.goto(url)

But now, how to use the captchas solver code for resolve ?

Error when giving pip install

Hi!
When doing pip install solverecaptchas,
gives error.
ERROR: Could not find a version that satisfies the requirement solverecaptchas (from versions: none)
ERROR: No matching distribution found for solverecaptchas

Is this lib pip?

Tks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.