Tools to Work with the 'Splash' JavaScript Rendering Service in R
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

splash_html.Rd 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/dsl.R
  3. \name{splash_html}
  4. \alias{splash_html}
  5. \title{Return a HTML snapshot of a current page.}
  6. \usage{
  7. splash_html(splash_obj, raw_html = FALSE)
  8. }
  9. \arguments{
  10. \item{splash_obj}{splashr object}
  11. \item{raw_html}{if \code{TRUE} then return a character vector vs an XML document.}
  12. }
  13. \description{
  14. Similar to \code{\link[=render_html]{render_html()}} but used in a script context. Should be the LAST element in
  15. a DSL script chain as this will execute the script and return the HTML content
  16. }
  17. \examples{
  18. \dontrun{
  19. splash_local \%>\%
  20. splash_response_body(TRUE) \%>\%
  21. splash_user_agent(ua_macos_chrome) \%>\%
  22. splash_go("https://rud.is/b") \%>\%
  23. splash_wait(2) \%>\%
  24. splash_html() -> rud_pg
  25. }
  26. }
  27. \seealso{
  28. Other splash_dsl_functions: \code{\link{splash_add_lua}},
  29. \code{\link{splash_click}}, \code{\link{splash_focus}},
  30. \code{\link{splash_go}}, \code{\link{splash_har_reset}},
  31. \code{\link{splash_har}}, \code{\link{splash_png}},
  32. \code{\link{splash_press}}, \code{\link{splash_release}},
  33. \code{\link{splash_send_keys}},
  34. \code{\link{splash_send_text}}, \code{\link{splash_wait}}
  35. }
  36. \concept{splash_dsl_functions}