Puppeteer-extra: Support puppeteer 5

Created on 18 Jun 2020  路  10Comments  路  Source: berstend/puppeteer-extra

Puppeteer 4 (edit: 5 now) has been released. The changes are quite trivial for puppeteer-extra, I think the most important is to remove this:
https://github.com/berstend/puppeteer-extra/blob/a2a06f971973067a631b1156cf826a034b1323ee/packages/puppeteer-extra-plugin-stealth/index.js#L155

I can do a PR but I'm not sure if this repo is maintained anymore @berstend?

bug planned-feature

Most helpful comment

It's now live on npm! 馃槃 馃帀

More specifically these are the new packages:

Successfully published:
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
lerna success published 14 packages

That means the following will now result in Puppeteer 5 + Extra & Stealth:

yarn add puppeteer puppeteer-extra puppeteer-extra-plugin-stealth

All tests a green for both puppeteer 5.0.0 and 2.1.1. Please report any issues you might find in this ticket.

Apologies again for the delay on this. Since today we have 6 awesome collaborators onboard and we will revamp the CI so packages will be automatically published when the code is being updated (so I'm not the sole dependency on pushing to npm).

That means updates (stealth, playwright, etc) will come a lot faster.

Please head over to this meta ticket to stay up to date on the overall progress and feel free to share your ideas on what the important next steps might be.

All 10 comments

Author is MIA since end of February, so i guess sending a pull request is just going to sit there, unfortunately.

I've a private "fork" of this with some modifications that helped me in some scenarios, but not sure if there's much interest in making it public or even for the community to help out in maintaining/moving forward.

i thnk people are interested in your mods

Alright, i'll look into making it public and how to make it installable through NPM, not much experience with it, just Composer for PHP :)

For those who're interested: I decided to make a similar package based on Playwright instead: https://github.com/Niek/playwright-addons.

It's still in development, at the moment it includes an ad blocker + some stealth evasions.

I have created a simple PR to avoid this particular issue. https://github.com/berstend/puppeteer-extra/pull/240. If anyone can give that PR a quick look and test it out I will appreciated.

@brunogaspar Let me know if there is anything I can help getting your fork public, feel free to shoot me an email.

Hopefully, this https://github.com/berstend/puppeteer-extra/issues/238 gets resolve soon, so we can all contribute to the same project.

Hi all, as mentioned in #238 I'm working my way through the outstanding issues and PRs now.

Making puppeteer-extra compatible with the latest Puppeteer release is among the highest priorities. I'm being slowed down by the CI testing a bit, as we have quite an elaborate testing matrix currently to ensure backwards compatibility.

As mentioned here it could make sense to simplify this in the future by having the latest puppeteer-extra version always support the latest puppeteer version (and encouraging version pinning in case older versions are required).

TL;DR: I'm in the process of merging/testing PRs to support Puppeteer 5 asap. 馃槃

@berstend thanks for giving this some thought, and @itsdarrylnorris for the PR. Since this has been merged into master, I was looking to install the stealth package at this commit. However, since it uses Lerna's package system, do we need to wait for a release before we'd be able to properly install this as a dependency? Thanks

@berstend thanks for giving this some thought, and @itsdarrylnorris for the PR. Since this has been merged into master, I was looking to install the stealth package at this commit. However, since it uses Lerna's package system, do we need to wait for a release before we'd be able to properly install this as a dependency? Thanks

I had to fix a Travis CI related issue first to ensure all tests go green for both puppeteer 5.0.0 and 2.1.1. (#243) and just finished that. 馃槄

Will do some last checks and push a new version with Puppeteer 5.0.0 compatibility to npm.

It's now live on npm! 馃槃 馃帀

More specifically these are the new packages:

Successfully published:
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
lerna success published 14 packages

That means the following will now result in Puppeteer 5 + Extra & Stealth:

yarn add puppeteer puppeteer-extra puppeteer-extra-plugin-stealth

All tests a green for both puppeteer 5.0.0 and 2.1.1. Please report any issues you might find in this ticket.

Apologies again for the delay on this. Since today we have 6 awesome collaborators onboard and we will revamp the CI so packages will be automatically published when the code is being updated (so I'm not the sole dependency on pushing to npm).

That means updates (stealth, playwright, etc) will come a lot faster.

Please head over to this meta ticket to stay up to date on the overall progress and feel free to share your ideas on what the important next steps might be.

Closing for now, please re-open in case of Puppeteer 5 related issues.

Was this page helpful?
0 / 5 - 0 ratings