You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm fiddling around with scraping webpages using headless Chromium and want to offer some options for blocking scripts, styles, images.
For styles and images, this is mainly to save some bandwidth, so just checking the Accept request header suffices for my use case (read: blocking things like inline <style> blocks is not my focus there).
However scripts are a bit of another story since they may alter page contents, so I want to try and block them entirely.
Of course, as soon as I disable JavaScript execution, I could just use a simple HTTP-based web scraper for the job, but if there's an option in Chromium then using the same technology stack as for the rest of the scraper would be preferrable.
Easy question: Is there a reliable way to block execution of any JavaScript on a
Page
?I've not found anything on this in the docs, but I'm curious if it's possible at all?
The text was updated successfully, but these errors were encountered: