gildas-lormeau / SingleFile

Web Extension for saving a faithful copy of a complete web page in a single HTML file
GNU Affero General Public License v3.0
14.29k stars 943 forks source link

Ability to run SingleFile within a Playwright context #1463

Closed smithnanic closed 1 month ago

smithnanic commented 1 month ago

I’m currently saving HTML pages in my Playwright project with a custom script that packages assets as data strings. But it doesn’t always work very well.

I would love to be able to use the SingleFile abilities within a Playwright Page context. I could either pass a page object to SingleFile or load SingleFile scripts within the page context, then build the single file HTMl and save it.

Without this, I just keep trying to recreate this package which feels like an unnecessary duplication of effort.

gildas-lormeau commented 1 month ago

I'm closing this issue because it's a duplicate of https://github.com/gildas-lormeau/single-file-core/issues/4.