SInglefile app integration

Hi,
I’m liking your tools but I’d like to extract data from the archives.
I came across this GitHub - gildas-lormeau/SingleFile: Web Extension for saving a faithful copy of a complete web page in a single HTML file recently which saves a web page as a single file making it easier to process and smaller too. All the javascript has gone, apart from a script added by SingleFile and just the web page with embedded images remains. I would like to automate the extraction of the single page either during archiving or post processing. I don’t want to do it manually.

Are there any hooks that can save the singlepage during archiving or example scripts of post processing that can be adapted to load an archived page and save it?
Thanks
Peter