rebrowser / rebrowser-patches

Collection of patches for puppeteer and playwright to avoid automation detection and leaks. Helps to avoid Cloudflare and DataDome CAPTCHA pages. Easy to patch/unpatch, can be enabled/disabled on demand.
https://rebrowser.net
126 stars 10 forks source link

error when patching #1

Closed ahmedmz877 closed 1 month ago

ahmedmz877 commented 1 month ago

FATAL ERROR: Package name is "puppeteer-real-browser", but we're looking for "puppeteer-core". Check your package path i am using https://github.com/zfcsoftware/puppeteer-real-browser/ how can i use the patch with it please

nwebson commented 1 month ago

How do you call the patcher? This package has puppeteer as a dependency, so you should use different packagePath when you run the script. You need to find where is puppeteer folder inside your project.

ahmedmz877 commented 1 month ago

npx rebrowser-patches patch --packagePath ./node_modules/puppeteer-real-browser

nwebson commented 1 month ago

So, after you run npm i puppeteer-real-browser, it will install all deps, so your actual puppeteer code will be in ./node_modules/puppeteer-core, you can use this path for the patcher.

thiyagarajanp98 commented 1 month ago

I actually used this command npx rebrowser-patches patch --packagePath /YT_uploader/node_modules/puppeteer-core and receiving below error.

image

nwebson commented 1 month ago

@thiyagarajanp98 - this means you don't have patch command installed. You need to install it in your OS, or inside the docker container.

ahmedmz877 commented 1 month ago

I actually used this command npx rebrowser-patches patch --packagePath /YT_uploader/node_modules/puppeteer-core and receiving below error.

image

Use https://git-scm.com/downloads to install the patch

thiyagarajanp98 commented 1 month ago

still not working

image

ahmedmz877 commented 1 month ago

still not working

image

use this in YT_uploader run npx rebrowser-patches patch --packagePath ./node_modules/puppeteer-core