Git Product home page Git Product logo

anti-captcha's Introduction

⚡️ Andréas « ScreamZ » HANSS

Founder at Coding Spark | Full-Stack Developer & Tech Lead | Software Architect | Freelancer | Entrepreneur

hello

👋🏻 Hi! I'm Andréas!

I'm a optimistic and pragmatic developper which loves making software that works and fit the business need. I used to play with « Modern JavaScript » and I really love new challenges.

Recently I worked with IoT, but I mainly work on web and mobile projects. I live fullstack!

What can I bring to you ?

I'm trying my best to share knowledge and good practices about software programming. Especially through articles on Medium.com. I'm also sharing small utility libraries to help you deliver faster projects. Also have a look at Coding Spark for some nice tech content for Frenchies.

Why I'm focusing on JavaScript

While in my opinion what make a good developer is not the language but having the basics of software programming and architecture; I mainly use JavaScript as it's the only relevant web language that works both on the client (web, mobile and many others) and the server side. Which is great and allows to share principles between platforms.

anti-captcha's People

Contributors

akamaozu avatar aren55555 avatar bharat-dpd avatar dependabot[bot] avatar divine avatar ejhayes avatar hatry1337 avatar hugoleblanc avatar ipoly avatar screamz avatar tiger6201 avatar

Stargazers

 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

anti-captcha's Issues

Vulnerability issue

$ npm audit

axios  0.8.1 - 1.5.1
Severity: moderate
Axios Cross-Site Request Forgery Vulnerability - https://github.com/advisories/GHSA-wf5p-g6vw-rhxx

node_modules/apisauce/node_modules/axios
  apisauce  <=3.0.0
  Depends on vulnerable versions of axios
  node_modules/apisauce
    anticaptcha  *
    Depends on vulnerable versions of apisauce
    node_modules/anticaptcha

it works well some sites, does not some sites.

Thank you for grate wrapper.

const AntiCaptchaAPI = new AntiCaptcha(antiCaptchaKey);
When I make an instance of AntiCaptcha, in some sites come no error, but some sites come error "TypeError: _anticaptcha2.default is not a constructor".

How can I avoid this error?

createTask returning false

I am probably doing something wrong here, but why would createTask return false? My example js code is below following the example in the README

const taskId = await AntiCaptchaAPI.createTask<IRecaptchaV3TaskProxyless>({
  type: TaskTypes.RECAPTCHA_PROXYLESS,
  websiteKey: sitekey,
  websiteURL: url
})

Not sure the generic type is allowed in js? When I try without, I get errors like: Error: Some of the required values for successive user emulation are missing. Missing property 'pageAction' or Error: Some of the required values for successive user emulation are missing. Missing property 'minScore' or Error: Some of the required values for successive user emulation are missing. Missing property 'pageAction'

const taskId = await AntiCaptchaAPI.createTask({
  type: TaskTypes.RECAPTCHA_PROXYLESS,
  websiteKey: sitekey,
  websiteURL: url
})

Any guidance? I am updating from 1.0.6 to 2.0.3. Are these new parameters required?

Missing argument in createTask method

I was checking the AntiCaptcha class, the method createTask has three params in the method signature, according to this:

/**
   * Dispatch a task creation to the service. This will return a taskId.
   *
   * @param {string} task - Task to perform
   * @param {string} websiteKey - The value of the "data-site-key" attribute. <- this param is missing
   * @param {string} languagePool - The language pool. Default to English if not provided.
   *
   * @memberof AntiCaptcha
   */
  public async createTask<T>(
    task: T,
    languagePool: LanguagePoolTypes = LanguagePoolTypes.ENGLISH
  ) {
    const response = (await this.api.post("createTask", {
      languagePool,
      task
    })) as ApiResponse<ICreateTaskResponse>;

    if (response.ok && response.data.errorId === 0) {
      return response.data.taskId;
    }
    throw new AntiCaptchaError(
      response.data.errorCode,
      response.data.errorDescription
    );
  }

Is the websiteKey not longer required?

Update Dependencies

Anticaptcha depends on apisauce "^1.1.1" (currently matches 1.1.2, latest is 2.1.1)
apisauce "1.1.2" then depends on axios "^0.19.0" (currently matches 0.19.2, latest is 0.21.1)
axios versions pre-0.21.1 have a high-severity vulnurability, see [https://www.npmjs.com/advisories/1594](NPM advisories)
This causes a warning message whenever installing anticaptcha via NPM:
4 vulnerabilities (1 moderate, 3 high)
Please update APIsauce to 2.1.1
As this is a major release update, i don't feel confident in doing this myself and testing if anything broke.

Support multiple task types

I'm interested in using this library but need to use ImageToTextTask. I would love to implement this myself and submit a pull request. Do you have any suggestions on expanding the current code for this functionality?

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.