Replies: 3 comments 2 replies
-
|
I'm also curious about this - would be extremely useful. |
Beta Was this translation helpful? Give feedback.
-
|
I ended up getting puppeteer extra plugin working with Browsershot. I don't necessarily recommend doing this as changing the vendor folder is never recommended but I did the following: npm install puppeteer-extra-plugin-stealth To install puppeter extra and the stealth plugin. Went to vendor/spatie/browsershot/bin to edit the browser.js file and within this file I changed line 60, "const puppet = (pup || require('puppeteer'));" to the following 4 lines: The new executablePath is required because for whatever reason the old one being used wasn't working with newer version of puppeteer-core (I didn't look too much into it, found the solution on stackoverflow). With that I also had to change the current line 90 (originally line 86) to: executablePath: executablePath(), To use the new executable path and it worked. Once again I don't necessarily recommend this. I think a PR should be made into Browershot to make the change properly, without hacking it, and so the vendor folder isn't messed with directly. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I'm having trouble implementing this. Tried the solution above as well as #399. I'm not sure where to place the libs/browsershot.js file and where to point setBinPath to. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Since this uses Puppeteer, I was wondering if there was any way to use browsershot with the Puppeteer stealth plugin.
https://www.npmjs.com/package/puppeteer-extra-plugin-stealth
Is this possible? If so, how would one do it?
Beta Was this translation helpful? Give feedback.
All reactions