optimistic-gold•16mo 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
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.
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.