Giter Site home page Giter Site logo

dore51 / puppeteer-recaptcha-solver Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 0.0 760 KB

Puppeteer Recaptcha solver

Home Page: https://www.npmjs.com/package/puppeteer-recaptcha-solver

License: MIT License

TypeScript 100.00%
captcha puppeteer-recaptcha recaptcha recaptcha-solver puppeteer-captcha puppeteer

puppeteer-recaptcha-solver's People

Contributors

dependabot[bot] avatar dore51 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

puppeteer-recaptcha-solver's Issues

Failed to open iframe

When try with a different site used on the example we found problems in order to go into the iframe:

[INFO] Starting to solve captcha
[DEBUG] switching to captcha anchor iframe
[DEBUG] waiting for iframe "captcha iframe"
[DEBUG] found iframe "captcha iframe"
[DEBUG] waiting for sub element "captcha checkbox"
[ERROR] Failed to switch to iframe "captcha iframe": TimeoutError: Waiting for selector `#recaptcha-anchor` failed: Waiting failed: 5000ms exceeded
[ERROR] Failed to solve captcha: TimeoutError: Waiting for selector `#recaptcha-anchor` failed: Waiting failed: 5000ms exceeded
Captcha solved:  false

Looking the code both captchas look identical

Customise iframe selectors

The library has no option for passing/customizing the selectors of the iframe selectors.
For example, customizing the api2/anchor selector to anchor.

One should add the option to pass custom selectors for both iframe selectors.
The selectors can be found at src/puppeteer/selectors.ts
They are currently static read-only but that mechanism can be changed to another implementation.

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.