gildas-lormeau / single-file-core

GNU Affero General Public License v3.0
21 stars 9 forks source link

Executing within Playwright (headless browser) #4

Open smithnanic opened 1 month ago

smithnanic commented 1 month ago

I would love to be able to run SingleFile within my Playwright for Node project.

If I could pass a page object to a SingleFile function, or inject SingleFile scripts onto a page as it loads, that would be perfect. Then I would just need to know which scripts to inject and how to call the builder.

gildas-lormeau commented 1 month ago

I think the simplest option would be to use the files below and integrate the code in your project. SingleFile CLI was supporting playwright in the past but I switched to a pure CDP implementation when I made it compatible with Deno.