Tools to Work with the 'Splash' JavaScript Rendering Service in R
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.9KB

  1. #' Tools to Work with the 'Splash' JavaScript Rendering Service
  2. #'
  3. #' 'Splash' <https://github.com/scrapinghub/splash> is a 'JavaScript' rendering service.
  4. #' It’s a lightweight web browser with an 'HTTP' API, implemented in 'Python' using 'Twisted'
  5. #' and 'QT' and provides some of the core functionality of the 'RSelenium' or 'seleniumPipes'
  6. #' R pacakges in a lightweight footprint.
  7. #'
  8. #' Some of 'Splash' features include the ability to process
  9. #' multiple webpages in parallel; retrieving 'HTML' results and/or take screenshots; disabling
  10. #' images or use 'Adblock Plus' rules to make rendering faster; executing custom 'JavaScript' in
  11. #' page context; getting detailed rendering info in 'HAR' format.
  12. #'
  13. #' @md
  14. #' @name splashr
  15. #' @docType package
  16. #' @author Bob Rudis (bob@@rud.is)
  17. #' @import purrr httr magick stevedore
  18. #' @importFrom stringi stri_split_regex stri_split_fixed stri_detect_regex stri_split_lines
  19. #' @importFrom HARtools writeHAR HARviewer renderHARviewer HARviewerOutput
  20. #' @importFrom xml2 read_html url_parse
  21. #' @importFrom jsonlite fromJSON unbox stream_in
  22. #' @importFrom openssl base64_decode
  23. #' @importFrom lubridate ymd_hms
  24. #' @importFrom scales comma
  25. #' @importFrom stats setNames
  26. #' @importFrom formatR tidy_source
  27. #' @importFrom utils capture.output str
  28. #' @importFrom curl curl_unescape
  29. #' @importFrom dplyr data_frame as_data_frame
  30. NULL
  31. #' splashr exported operators
  32. #'
  33. #' The following functions are imported and then re-exported
  34. #' from the splashr package to enable use of the magrittr
  35. #' pipe operator with no additional library calls
  36. #'
  37. #' @name splashr-exports
  38. NULL
  39. #' @name %>%
  40. #' @export
  41. #' @rdname splashr-exports
  42. NULL
  43. #' @name writeHAR
  44. #' @export
  45. #' @rdname splashr-exports
  46. NULL
  47. #' @name HARviewer
  48. #' @export
  49. #' @rdname splashr-exports
  50. NULL
  51. #' @name renderHARviewer
  52. #' @export
  53. #' @rdname splashr-exports
  54. NULL
  55. #' @name HARviewerOutput
  56. #' @export
  57. #' @rdname splashr-exports
  58. NULL