potahtml / mpa-archive

Crawls a Multi-Page Application to a zip file, serve the Multi-Page Application from the zip file. A MPA archiver. Could be used as a Site Generator
MIT License
463 stars 10 forks source link

Login to Site / Use Cookies #3

Open zevlag opened 1 month ago

zevlag commented 1 month ago

How do I provide a cookie jar for the archiver to use as it saves the site?

titoBouzout commented 4 weeks ago

This is an interesting issue, this uses puppeteer to crawl the site. I just quickly googled about it and could find some options about cookies in json and this seems promising for a cookie jar https://github.com/utyfua/puppeteer-tough-cookie-store