splash_private_mode: Enable or disable execution of JavaSript code embedded in the...

Description Usage Arguments See Also Examples

View source: R/dsl.r

Description

Private mode is enabled by default unless you pass flag --disable-private-mode at Splash (server) startup. Note that if you disable private mode browsing data such as cookies or items kept in local storage may persist between requests.

Usage

1
splash_private_mode(splash_obj, enable = FALSE)

Arguments

splash_obj

splashr object

enable

logical

See Also

Other splash_dsl_attributes: splash_enable_javascript(), splash_images(), splash_plugins(), splash_response_body()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
splash_local %>%
  splash_response_body(TRUE) %>%
  splash_private_mode(TRUE) %>%
  splash_user_agent(ua_macos_chrome) %>%
  splash_go("https://rud.is/b") %>%
  splash_wait(2) %>%
  splash_har() -> rud_har

## End(Not run)

hrbrmstr/splashr documentation built on Feb. 23, 2020, 2:13 p.m.