DEV Community

Discussion on: Web Scraping with Javascript and Node.js

dehfw profile image

What about handling the cookie consent banner. Is there an easy way to handle the many different types ?

anderrv profile image
Ander Rodriguez Author

For plain-text requests, you won't need to accept them, just parse the content available, which is usually there.

In case you are using Playwright, you could find the selector and dismiss them by clicking like a normal user. In any case, unless it is a must for you, there is nothing to gain from dismissing them.