automatic-azure•16mo ago
save HTML as a SingleFile with all assets?
Has anybody had success running this SingleFile package (https://github.com/gildas-lormeau/SingleFile) within PlaywrightCrawler?
I’m trying to save HTML with all style and image assets as data strings, but it’s clunky. This package looks like it would work well if only we could use it within the crawler’s context.
Looking for ideas to integrate this or replicate its features in Playwright. Thanks
GitHub
GitHub - gildas-lormeau/SingleFile: Web Extension for saving a fait...
Web Extension for saving a faithful copy of a complete web page in a single HTML file - gildas-lormeau/SingleFile
4 Replies
foreign-sapphire•15mo ago
Hi I found this
foreign-sapphire•15mo ago
https://github.com/gildas-lormeau/SingleFile/issues/723
and this
https://github.com/gildas-lormeau/SingleFile/wiki/How-to-integrate-SingleFile-library-code-in-%22custom%22-environments%3F
that should hopefully allow you to use singleFile with puppeteer and hopefully crawlee?
Great tool, thanks for pointing it out!
GitHub
Publish a library support use in playwright ? · Issue #723 · gildas...
Is your feature request related to a problem? Please describe. I think SingleFile(Z) is perfect use to archive web pages, but I prefer the programmable way Describe the solution you'd like It w...
GitHub
How to integrate SingleFile library code in "custom" environments?
Web Extension for saving a faithful copy of a complete web page in a single HTML file - gildas-lormeau/SingleFile
automatic-azureOP•15mo ago
Got this working very nicely btw! LMK if you need any assistance
@kennysmithnanic just advanced to level 2! Thanks for your contributions! 🎉