zfcsoftware / puppeteer-real-browser

This package is designed to bypass puppeteer's bot-detecting captchas such as Cloudflare. It acts like a real browser and can be managed with puppeteer.
https://www.npmjs.com/package/puppeteer-real-browser
MIT License
346 stars 42 forks source link

cloudflare verify not work #65

Open CharellKing opened 2 weeks ago

CharellKing commented 2 weeks ago

when i run this script on windows system, the browser is always blink:

import { connect } from 'puppeteer-real-browser'

const rank = () => {
const url = 'https://nopecha.com/demo/cloudflare'
  connect({
    headless: 'auto',
    fingerprint: true,
    turnstile: true,
  })
  .then(async (response) => {
    console.log(response);
    const { page, browser } = response
    setInterval(async () => {
    await page.screenshot({ path: "./page.jpg" });
    }, 500);
    page.goto(url, { waitUntil: 'domcontentloaded' });
  })
  .catch((error) => {
    console.log(error.message);
  });
}

rank();
CharellKing commented 2 weeks ago

Cartoon This is my record gif.

zfcsoftware commented 2 weeks ago

https://github.com/zfcsoftware/cf-clearance-scraper I suggest you try this library. I'm updating the library now.