Open waybackarchiver opened 2 years ago
Okay move to this issue :)
I have two ideas.
puppeteer-extra-*
with puppeteer, and dump the CDP messages (I did this before, easy but not graceful), and generate go code, but it's difficult to deal with random scripts, such as https://www.npmjs.com/package/puppeteer-extra-plugin-stealthHow do you think?
dump the CDP messages and generate go code
This approach may complicate and add uncertainty to the situation.
Provide a node runtime in go side or the browser side
As expected, this approach provides a new extension to call the methods exposed by puppeteer-extra-*
.
dump the CDP messages and generate go code
This approach may complicate and add uncertainty to the situation.
Right, such as https://github.com/kkoooqq/fakebrowser/blob/586e85c0ed872513d2e0703d8c516250a8a4365b/src/core/DeviceDescriptor.ts#L463-L479
Provide a node runtime in go side or the browser side
As expected, this approach provides a new extension to call the methods exposed by
puppeteer-extra-*
.
But this is complicate too, ESM and CJS, js and ts, dependencies, and so on. It sounds like a webpack in browser.
If the method on callsite or by extracting puppeteer-extra
does not work, we can search for alternative extensions or create one.
I'm working for launching Chrome and loading extensions. Next, make it possible to customize it so that it can load more extensions.
Related project wabarc/starter, and more details see runs
Relates to wabarc/screenshot#11
The extension bypass-paywall is currently supported in conjunction with the on-heroku project, and the next step will be to make the starter extra approachable and to add more extensions to it.
Unfortunately, the incapability to save PDFs and screenshots in the X11 environment has arisen, which means that core idea may not be completely operational.
Launch headfull browser with Xvfb and import extensions.
Relates to #92
Extensions:
Misc: