Learn R Programming

splashr (version 0.6.0)

splash_images: Enable/disable images

Description

By default, images are enabled. Disabling of the images can save a lot of network traffic (usually around ~50 affect the JavaScript code inside page: disabling of the images may change sizes and positions of DOM elements, and scripts may read and use them.

Usage

splash_images(splash_obj, enable = TRUE)

Arguments

splash_obj

splashr object

enable

logical

See Also

Other splash_dsl_attributes: splash_enable_javascript, splash_plugins, splash_private_mode, splash_response_body

Examples

Run this code
# NOT RUN {
splash_local %>%
  splash_images(TRUE) %>%
  splash_user_agent(ua_macos_chrome) %>%
  splash_go("https://rud.is/b") %>%
  splash_wait(2) %>%
  splash_har() -> rud_har
# }

Run the code above in your browser using DataLab