Tools to Work with the 'Splash' JavaScript Rendering Service in R
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

render_png.Rd 2.7KB

il y a 3 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/render-png.r
  3. \name{render_png}
  4. \alias{render_png}
  5. \title{Return a image (in PNG format) of the javascript-rendered page.}
  6. \usage{
  7. render_png(splash_obj, url, base_url = NULL, width = 1024, height = 768,
  8. render_all = FALSE, timeout = 30, resource_timeout = NULL, wait = 0,
  9. proxy, js, js_src, filters, allowed_domains = "",
  10. allowed_content_types = "", forbidden_content_types = "",
  11. viewport = "1024x768", images, headers, body, http_method, save_args,
  12. load_args)
  13. }
  14. \arguments{
  15. \item{splash_obj}{Object created by a call to \link{splash}}
  16. \item{url}{The URL to render (required)}
  17. \item{base_url}{TBD The base url to render the page with.}
  18. \item{width, height}{Resize the rendered image to the given width/height (in pixels) keeping the aspect ratio.}
  19. \item{render_all}{If \code{TRUE} extend the viewport to include the whole webpage (possibly very tall) before rendering. Default is \code{FASLE}}
  20. \item{timeout}{TBD A timeout (in seconds) for the render (defaults to 30).}
  21. \item{resource_timeout}{A timeout (in seconds) for individual network requests.}
  22. \item{wait}{Time (in seconds) to wait for updates after page is loaded (defaults to 0).}
  23. \item{proxy}{TBD Proxy profile name or proxy URL.}
  24. \item{js}{TBD Javascript profile name.}
  25. \item{js_src}{TBD JavaScript code to be executed in page context.}
  26. \item{filters}{TBD Comma-separated list of request filter names.}
  27. \item{allowed_domains}{TBD Comma-separated list of allowed domain names. If present, Splash won’t load anything neither from domains not in this list nor from subdomains of domains not in this list.}
  28. \item{allowed_content_types}{TBD Comma-separated list of allowed content types. If present, Splash will abort any request if the response’s content type doesn’t match any of the content types in this list. Wildcards are supported.}
  29. \item{forbidden_content_types}{TBD Comma-separated list of forbidden content types. If present, Splash will abort any request if the response’s content type matches any of the content types in this list. Wildcards are supported.}
  30. \item{viewport}{View width and height (in pixels) of the browser viewport to render the web page. Format is “<width>x<height>”, e.g. 800x600. Default value is 1024x768.}
  31. \item{images}{TBD Whether to download images.}
  32. \item{headers}{TBD HTTP headers to set for the first outgoing request.}
  33. \item{body}{TBD Body of HTTP POST request to be sent if method is POST.}
  34. \item{http_method}{TBD HTTP method of outgoing Splash request.}
  35. \item{save_args}{TBD A list of argument names to put in cache.}
  36. \item{load_args}{TBD Parameter values to load from cache}
  37. }
  38. \description{
  39. Return a image (in PNG format) of the javascript-rendered page.
  40. }