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. Written for https://pota.quack.uy/
https://pota.quack.uy/
MIT License
473 stars 11 forks source link

Login to Site / Use Cookies #3

Open zevlag opened 4 months ago

zevlag commented 4 months ago

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

titoBouzout commented 4 months 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

utyfua commented 3 months ago

If you have any problems using the package or missing functionality, open an issue, I will be glad to help.