sayem314 / hooman

http interceptor to hoomanize cloudflare requests
https://www.npmjs.com/package/hooman
MIT License
148 stars 18 forks source link

Need some help if is posible #22

Closed Danny1994d closed 4 years ago

Danny1994d commented 4 years ago

What would you like to discuss?

Hello, i dont know what is wrong, can't bypass hcaptcha, just im waiting 1-3 min and nothing

my exemple code

const hooman = require('hooman');
const url= process.argv[2];
  return new Promise((resolve, reject) => {
    hooman.get(url, {
      captchaKey: 'key',
    });
    })
      .catch((error) => {
      console.log(error.message);
      return reject(error.message);
      });
      }

Checklist

sayem314 commented 4 years ago

did you provide real captchaKey from 2captcha?

sayem314 commented 4 years ago

and did you get any message like [info] Solving hcaptcha at {pageurl}

Danny1994d commented 4 years ago

did you provide real captchaKey from 2captcha?

Yes, i have provide real key, and yes, just console log 'solving hcaptcha etc'' but im waiting up to 3 mins and nothing Test url : https://habnet.biz/ and https://runo.pw/

sayem314 commented 4 years ago

maybe captcha workers are busy. for now, use this one. please don't abuse it. it's free btw. and captcha key is really dummy

captchaKey: 'dummy',
captchaRetry: 2,
onCaptcha: async ({ pageurl, sitekey, method }) => {
  try {
    console.log(`[info] Solving ${method} at ${pageurl} for free!`);
    const { body } = await hooman.post('https://harvest.caddy.eu.org/solve', {
      json: {
        sitekey,
        pageurl,
      },
      responseType: 'json',
    });
    return body.generated_pass_UUID;
  } catch (e) {
    console.log(e.message);
  }
},