optimistic-gold
optimistic-gold16mo ago

Submit login form with CheerioCrawler

Is it possible to fill the login form, submit the form and get the cookies using CheerioCrawler? The form has CSRF protection, so it's not just an api endpoint. Or should I stick to puppeteer for such websites?
2 Replies
Saurav Jain
Saurav Jain16mo ago
I don't think it can be done with CheerioCrawler, it is not meant to execute JavaScript or handle dynamic content. I'd stick to Puppeteer.
Lukas Krivka
Lukas Krivka15mo ago
Everything is possible to reverse engineer without a browser but it is just if it is worth to invest the time, looking at the scripts that generate the tokens etc.

Did you find this page helpful?