diff --git a/README.Rmd b/README.Rmd index ba29534..da3fee9 100644 --- a/README.Rmd +++ b/README.Rmd @@ -17,7 +17,7 @@ You can also get it running with two commands: (Do whatever you Windows ppl do with Docker on your systems to make ^^ work.) -You can run Selenium in Docker, so this is not unique to Splash. But, Docker context makes it so that you don't have to run or maintain icky Python stuff directly on your system. Leave it in the abandoned warehouse district where it belongs. +You can run Selenium in Docker, so this is not unique to Splash. But, a Docker context makes it so that you don't have to run or maintain icky Python stuff directly on your system. Leave it in the abandoned warehouse district where it belongs. All you need for this package to work is a running Splash instance. You provide the host/port for it and it's scrape-tastic fun from there! @@ -33,6 +33,15 @@ The following functions are implemented: - `render_png`: Return a image (in PNG format) of the javascript-rendered page. - `splash`: Configure parameters for connecting to a Splash server +### TODO + +Suggest more in a feature req! + +- Implement `render.json` +- Implement `execute` (you can script Splash!) +- _Possibly_ writing R function wrappers to start Splash which would also support enabling javascript profiles, request filters and proxy profiles from with R directly, possibly using [`harbor`](https://github.com/wch/harbor) +- Testing results with all combinations of parameters + ### Installation ```{r eval=FALSE} diff --git a/README.md b/README.md index 5ce5efa..ea5b534 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ You can also get it running with two commands: (Do whatever you Windows ppl do with Docker on your systems to make ^^ work.) -You can run Selenium in Docker, so this is not unique to Splash. But, Docker context makes it so that you don't have to run or maintain icky Python stuff directly on your system. Leave it in the abandoned warehouse district where it belongs. +You can run Selenium in Docker, so this is not unique to Splash. But, a Docker context makes it so that you don't have to run or maintain icky Python stuff directly on your system. Leave it in the abandoned warehouse district where it belongs. All you need for this package to work is a running Splash instance. You provide the host/port for it and it's scrape-tastic fun from there! @@ -30,6 +30,15 @@ The following functions are implemented: - `render_png`: Return a image (in PNG format) of the javascript-rendered page. - `splash`: Configure parameters for connecting to a Splash server +### TODO + +Suggest more in a feature req! + +- Implement `render.json` +- Implement `execute` (you can script Splash!) +- *Possibly* writing R function wrappers to start Splash which would also support enabling javascript profiles, request filters and proxy profiles from with R directly, possibly using [`harbor`](https://github.com/wch/harbor) +- Testing results with all combinations of parameters + ### Installation ``` r @@ -61,7 +70,7 @@ splash("splash", 8050L) %>% splash_active() ``` - ## Status of splash instance on [http://splash:8050]: ok. Max RSS: 313761792 + ## Status of splash instance on [http://splash:8050]: ok. Max RSS: 333393920 ``` r splash("splash", 8050L) %>% @@ -77,7 +86,7 @@ splash("splash", 8050L) %>% ## ..$ LuaRuntime: int 1 ## ..$ QTimer : int 1 ## ..$ Request : int 1 - ## $ maxrss : int 306408 + ## $ maxrss : int 325580 ## $ qsize : int 0 ## $ url : chr "http://splash:8050" ## - attr(*, "class")= chr [1:2] "splash_debug" "list" @@ -160,7 +169,7 @@ library(testthat) date() ``` - ## [1] "Sat Feb 4 07:01:02 2017" + ## [1] "Sat Feb 4 08:02:49 2017" ``` r test_dir("tests/") diff --git a/README_files/figure-markdown_github/unnamed-chunk-5-1.png b/README_files/figure-markdown_github/unnamed-chunk-5-1.png index 1d3b2fa..d496c79 100644 Binary files a/README_files/figure-markdown_github/unnamed-chunk-5-1.png and b/README_files/figure-markdown_github/unnamed-chunk-5-1.png differ diff --git a/img/cap.jpg b/img/cap.jpg index ff9c57f..4b5f86d 100644 Binary files a/img/cap.jpg and b/img/cap.jpg differ diff --git a/img/cap.png b/img/cap.png index a057d39..3231708 100644 Binary files a/img/cap.png and b/img/cap.png differ