~hrbrmstr/htmlunit

e7467babb2ad5e63f2629fec5b07a7cefadd50fb — hrbrmstr 5 months ago 432ef34
update for new htmlunit rls
41 files changed, 160 insertions(+), 135 deletions(-)

M DESCRIPTION
M R/wc-inspect.R
M README.md
M inst/java/htmlunit-1.0-SNAPSHOT.jar
M java/htmlunit/Makefile
A java/htmlunit/deps/commons-text-1.8.jar
A java/htmlunit/deps/htmlunit-2.38.0.jar
A java/htmlunit/deps/htmlunit-core-js-2.38.0.jar
A java/htmlunit/deps/httpclient-4.5.12.jar
A java/htmlunit/deps/httpcore-4.4.13.jar
A java/htmlunit/deps/httpmime-4.5.12.jar
A java/htmlunit/deps/jetty-client-9.4.27.v20200227.jar
A java/htmlunit/deps/jetty-http-9.4.27.v20200227.jar
A java/htmlunit/deps/jetty-io-9.4.27.v20200227.jar
A java/htmlunit/deps/jetty-util-9.4.27.v20200227.jar
A java/htmlunit/deps/jetty-xml-9.4.27.v20200227.jar
A java/htmlunit/deps/neko-htmlunit-2.38.0.jar
A java/htmlunit/deps/websocket-api-9.4.27.v20200227.jar
A java/htmlunit/deps/websocket-client-9.4.27.v20200227.jar
A java/htmlunit/deps/websocket-common-9.4.27.v20200227.jar
M java/htmlunit/pom.xml
R java/htmlunit/src/main/java/is/rud/htmlunit/{App.java => Zapp.java}
A java/htmlunit/target/classes/is/rud/htmlunit/Zapp$1.class
A java/htmlunit/target/classes/is/rud/htmlunit/Zapp.class
M java/htmlunit/target/htmlunit-1.0-SNAPSHOT.jar
M java/htmlunit/target/maven-archiver/pom.properties
M java/htmlunit/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
M java/htmlunit/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
D java/htmlunit/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
D java/htmlunit/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
M man/htmlunit.Rd
M man/hu_read_html.Rd
M man/wc_css.Rd
M man/wc_dnt.Rd
M man/wc_geo.Rd
M man/wc_img_dl.Rd
M man/wc_resize.Rd
M man/wc_timeout.Rd
M man/wc_use_insecure_ssl.Rd
M man/wc_wait.Rd
M man/web_client.Rd
M DESCRIPTION => DESCRIPTION +5 -5
@@ 1,8 1,8 @@
Package: htmlunit
Type: Package
Title: Tools to Scrape Dynamic Web Content via the 'HtmlUnit' Java Library
Version: 0.3.0
Date: 2019-08-24
Version: 0.3.1
Date: 2020-03-10
Authors@R: c(
    person("Bob", "Rudis", email = "bob@rud.is", role = c("aut", "cre"), 
           comment = c(ORCID = "0000-0001-5670-2640")),


@@ 19,8 19,8 @@ Description: 'HtmlUnit' (<https://htmlunit.sourceforge.net/>) is a "'GUI'-Less
    information from web sites. Tools are provided to work with this library
    at a higher level than provided by the exposed 'Java' libraries in the 
    'htmlunitjars' package.
URL: https://gitlab.com/hrbrmstr/htmlunit
BugReports: https://gitlab.com/hrbrmstr/htmlunit/issues
URL: https://git.rud.is/hrbrmstr/htmlunit
BugReports: https://git.rud.is/hrbrmstr/htmlunit/issues
Encoding: UTF-8
License: Apache License 2.0 | file LICENSE
Imports: 


@@ 35,5 35,5 @@ Depends:
    rvest,
    xml2
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.1.1
RoxygenNote: 7.0.2
Remotes: gitlab::hrbrmstr/htmlunitjars

M R/wc-inspect.R => R/wc-inspect.R +1 -1
@@ 8,7 8,7 @@
#' @export
wc_inspect <- function(url, js_delay = 5000L) {

  app <- J("is.rud.htmlunit.App")
  app <- J("is.rud.htmlunit.Zapp")

  res <- app$getRequestsFor(url, .jlong(js_delay))
  res <- as.list(res)

M README.md => README.md +36 -53
@@ 132,7 132,7 @@ library(tidyverse) # for some data ops; not req'd for pkg

# current verison
packageVersion("htmlunit")
## [1] '0.3.0'
## [1] '0.3.1'
```

Something `xml2::read_html()` cannot do, read the table from


@@ 178,37 178,41 @@ colnames(xdf)
## [7] "content_type"   "load_time"      "headers"

select(xdf, method, url, status_code, content_length, load_time)
## # A tibble: 168 x 5
## # A tibble: 46 x 5
##    method url                                                                       status_code content_length load_time
##    <chr>  <chr>                                                                           <int>          <dbl>     <dbl>
##  1 GET    https://rstudio.com/                                                              302            154       278
##  2 GET    https://www.rstudio.com/                                                          200         125451       281
##  3 GET    https://www.rstudio.com/wp-includes/js/wp-emoji-release.min.js?ver=5.1.1          200           4426        47
##  4 GET    https://442r58kc8ke1y38f62ssb208-wpengine.netdna-ssl.com/wp-content/plug…         200           4193       147
##  5 GET    https://fonts.googleapis.com/css?family=Lato:100,300,regular,700,900%7CO…         200            820       151
##  6 GET    https://442r58kc8ke1y38f62ssb208-wpengine.netdna-ssl.com/wp-content/plug…         200           1306        24
##  7 GET    https://442r58kc8ke1y38f62ssb208-wpengine.netdna-ssl.com/wp-content/plug…         200           7102        26
##  8 GET    https://442r58kc8ke1y38f62ssb208-wpengine.netdna-ssl.com/wp-content/plug…         200           9680        23
##  9 GET    https://442r58kc8ke1y38f62ssb208-wpengine.netdna-ssl.com/wp-content/plug…         200           1001        20
## 10 GET    https://442r58kc8ke1y38f62ssb208-wpengine.netdna-ssl.com/wp-content/plug…         200            271        21
## # … with 158 more rows
##  1 GET    https://rstudio.com/                                                              200          12225       468
##  2 GET    https://dev.visualwebsiteoptimizer.com/j.php?a=450622&u=https%3A%2F%2Frs…         200           1254       263
##  3 GET    https://dev.visualwebsiteoptimizer.com/6.0/va-41bacd491c20ae77339f81a709…         200          55687        68
##  4 GET    https://use.fontawesome.com/releases/v5.0.6/css/all.css                           200           8699       170
##  5 GET    https://d33wubrfki0l68.cloudfront.net/bundles/c5ddb3e999592179708beea702…         200          53046       153
##  6 GET    https://cdn.rawgit.com/noelboss/featherlight/1.7.13/release/featherlight…         200            763       172
##  7 GET    https://d33wubrfki0l68.cloudfront.net/css/4a0f49009a213e6e2207c6f66893f0…         200            505        15
##  8 GET    https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min…         200            548       211
##  9 GET    https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-aweso…         200           6663       127
## 10 GET    https://snap.licdn.com/li.lms-analytics/insight.min.js                            200           1576       136
## # … with 36 more rows

group_by(xdf, content_type) %>% 
  summarise(
    total_size = sum(content_length), 
    total_load_time = sum(load_time)/1000
  )
## # A tibble: 8 x 3
##   content_type           total_size total_load_time
##   <chr>                       <dbl>           <dbl>
## 1 application/javascript     673583           3.79 
## 2 application/json             4147           0.914
## 3 image/gif                      70           0.202
## 4 image/jpeg                  59772           0.022
## 5 image/png                  577497           0.423
## 6 text/css                   131846           0.773
## 7 text/html                  126021           0.592
## 8 text/javascript            191565           0.492
## # A tibble: 12 x 3
##    content_type               total_size total_load_time
##    <chr>                           <dbl>           <dbl>
##  1 ""                              44288           0.185
##  2 "application/javascript"       262203           0.724
##  3 "application/json"               4100           0.848
##  4 "application/x-javascript"     152398           0.521
##  5 "image/gif"                        35           0.209
##  6 "image/jpeg"                    59772           0.026
##  7 "image/png"                     40634           0.064
##  8 "image/svg+xml"                 41727           0.141
##  9 "text/css"                     118100           1.08 
## 10 "text/html"                     12642           0.518
## 11 "text/javascript"              249525           0.926
## 12 "text/plain"                       28           0.183
```

### DSL


@@ 217,7 221,7 @@ group_by(xdf, content_type) %>%
wc <- web_client(emulate = "chrome")

wc %>% wc_browser_info()
## < Netscape / 5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36 / en-US >
## < Netscape / 5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36 / en-US >

wc <- web_client()



@@ 261,38 265,17 @@ wc %>%
  cat()
## USA.gov: The U.S. Government's Official Web Portal | USAGov
## Skip to main content
## 
## 
## An official website of the United States government Here's how you know
## 
## 
## 
## 
## 
## 
## 
## 
## 
## 
## Search
##  Search
## 
## 
## Search
##  1-844-USA-GOV1
## 
## 
## 
## Search
## 1-844-USA-GOV1
## All Topics and Services
## 
## 
## About the U.S.
## 
## 
## Benefits, Grants, Loans
## 
## 
## Government Agencies and
## Government Agencies and Elected Officials
## Jobs and Unemployme
```

### htmlunit Metrics


@@ 301,9 284,9 @@ wc %>%
| :---- | -------: | ---: | --: | ---: | ----------: | ---: | -------: | ---: |
| R     |       14 | 0.78 | 351 | 0.76 |         193 | 0.74 |      372 | 0.83 |
| Rmd   |        1 | 0.06 |  41 | 0.09 |          52 | 0.20 |       75 | 0.17 |
| Maven |        1 | 0.06 |  30 | 0.06 |           0 | 0.00 |        1 | 0.00 |
| Java  |        1 | 0.06 |  28 | 0.06 |          11 | 0.04 |        0 | 0.00 |
| make  |        1 | 0.06 |  14 | 0.03 |           4 | 0.02 |        0 | 0.00 |
| Maven |        1 | 0.06 |  30 | 0.07 |           0 | 0.00 |        1 | 0.00 |
| Java  |        1 | 0.06 |  28 | 0.06 |          12 | 0.05 |        0 | 0.00 |
| make  |        1 | 0.06 |  10 | 0.02 |           4 | 0.02 |        0 | 0.00 |

## Code of Conduct


M inst/java/htmlunit-1.0-SNAPSHOT.jar => inst/java/htmlunit-1.0-SNAPSHOT.jar +0 -0

M java/htmlunit/Makefile => java/htmlunit/Makefile +4 -8
@@ 1,18 1,14 @@
.PHONY: clean pkg deps run

pkg:
	export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
	mvn --quiet package
	JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home mvn --quiet package
	cp target/htmlunit-1.0-SNAPSHOT.jar ../../inst/java

clean:
	export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
	mvn clean
	JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home mvn clean

deps:
	export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
	mvn dependency:copy-dependencies -DoutputDirectory=deps
	JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home mvn dependency:copy-dependencies -DoutputDirectory=deps

new:
	export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
	mvn archetype:generate -DgroupId=is.rud.htmlunit -DartifactId=htmlunit -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
	JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home mvn archetype:generate -DgroupId=is.rud.htmlunit -DartifactId=htmlunit -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

A java/htmlunit/deps/commons-text-1.8.jar => java/htmlunit/deps/commons-text-1.8.jar +0 -0

A java/htmlunit/deps/htmlunit-2.38.0.jar => java/htmlunit/deps/htmlunit-2.38.0.jar +0 -0

A java/htmlunit/deps/htmlunit-core-js-2.38.0.jar => java/htmlunit/deps/htmlunit-core-js-2.38.0.jar +0 -0

A java/htmlunit/deps/httpclient-4.5.12.jar => java/htmlunit/deps/httpclient-4.5.12.jar +0 -0

A java/htmlunit/deps/httpcore-4.4.13.jar => java/htmlunit/deps/httpcore-4.4.13.jar +0 -0

A java/htmlunit/deps/httpmime-4.5.12.jar => java/htmlunit/deps/httpmime-4.5.12.jar +0 -0

A java/htmlunit/deps/jetty-client-9.4.27.v20200227.jar => java/htmlunit/deps/jetty-client-9.4.27.v20200227.jar +0 -0

A java/htmlunit/deps/jetty-http-9.4.27.v20200227.jar => java/htmlunit/deps/jetty-http-9.4.27.v20200227.jar +0 -0

A java/htmlunit/deps/jetty-io-9.4.27.v20200227.jar => java/htmlunit/deps/jetty-io-9.4.27.v20200227.jar +0 -0

A java/htmlunit/deps/jetty-util-9.4.27.v20200227.jar => java/htmlunit/deps/jetty-util-9.4.27.v20200227.jar +0 -0

A java/htmlunit/deps/jetty-xml-9.4.27.v20200227.jar => java/htmlunit/deps/jetty-xml-9.4.27.v20200227.jar +0 -0

A java/htmlunit/deps/neko-htmlunit-2.38.0.jar => java/htmlunit/deps/neko-htmlunit-2.38.0.jar +0 -0

A java/htmlunit/deps/websocket-api-9.4.27.v20200227.jar => java/htmlunit/deps/websocket-api-9.4.27.v20200227.jar +0 -0

A java/htmlunit/deps/websocket-client-9.4.27.v20200227.jar => java/htmlunit/deps/websocket-client-9.4.27.v20200227.jar +0 -0

A java/htmlunit/deps/websocket-common-9.4.27.v20200227.jar => java/htmlunit/deps/websocket-common-9.4.27.v20200227.jar +0 -0

M java/htmlunit/pom.xml => java/htmlunit/pom.xml +1 -1
@@ 25,7 25,7 @@
    <dependency>
      <groupId>net.sourceforge.htmlunit</groupId>
      <artifactId>htmlunit</artifactId>
      <version>2.36.0</version>
      <version>2.38.0</version>
    </dependency>
  </dependencies>
</project>

R java/htmlunit/src/main/java/is/rud/htmlunit/App.java => java/htmlunit/src/main/java/is/rud/htmlunit/Zapp.java +22 -21
@@ 6,34 6,35 @@ import java.util.*;
import java.lang.*;
import java.io.*;

public class App {
public class Zapp {

public static List<WebResponse> getRequestsFor(String url, long jsDelay) throws IOException {
  public static List<WebResponse> getRequestsFor(String url, long jsDelay) throws IOException {

  final WebClient webClient = new WebClient(BrowserVersion.CHROME);
    final WebClient webClient = new WebClient(BrowserVersion.CHROME);

  WebClientOptions wco = webClient.getOptions();
  wco.setThrowExceptionOnScriptError(false);
  wco.setCssEnabled(true);
  wco.setDownloadImages(true);
  wco.setTimeout(30000);
    WebClientOptions wco = webClient.getOptions();
    wco.setThrowExceptionOnScriptError(false);
    wco.setCssEnabled(true);
    wco.setDownloadImages(true);
    wco.setTimeout(30000);

  final List<WebResponse> list = new ArrayList<>();
    final List<WebResponse> list = new ArrayList<>();

  new WebConnectionWrapper(webClient) {
    @Override
    public WebResponse getResponse(final WebRequest request) throws IOException {
      final WebResponse response = super.getResponse(request);
      list.add(response);
      return response;
    }
  };
    new WebConnectionWrapper(webClient) {
      @Override
      public WebResponse getResponse(final WebRequest request) throws IOException {
        final WebResponse response = super.getResponse(request);
        list.add(response);
        return response;
      }
    };

  webClient.getPage(url);
  webClient.waitForBackgroundJavaScript(jsDelay);
    webClient.getPage(url);
    webClient.waitForBackgroundJavaScript(jsDelay);

  return(list);
    return(list);

}
  }

}


A java/htmlunit/target/classes/is/rud/htmlunit/Zapp$1.class => java/htmlunit/target/classes/is/rud/htmlunit/Zapp$1.class +0 -0

A java/htmlunit/target/classes/is/rud/htmlunit/Zapp.class => java/htmlunit/target/classes/is/rud/htmlunit/Zapp.class +0 -0

M java/htmlunit/target/htmlunit-1.0-SNAPSHOT.jar => java/htmlunit/target/htmlunit-1.0-SNAPSHOT.jar +0 -0

M java/htmlunit/target/maven-archiver/pom.properties => java/htmlunit/target/maven-archiver/pom.properties +2 -2
@@ 1,5 1,5 @@
#Generated by Maven
#Mon Apr 29 10:10:01 EDT 2019
version=1.0-SNAPSHOT
#Tue Mar 10 08:03:25 EDT 2020
groupId=is.rud.htmlunit
artifactId=htmlunit
version=1.0-SNAPSHOT

M java/htmlunit/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst => java/htmlunit/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +2 -0
@@ 1,2 1,4 @@
is/rud/htmlunit/App$1.class
is/rud/htmlunit/Zapp.class
is/rud/htmlunit/App.class
is/rud/htmlunit/Zapp$1.class

M java/htmlunit/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst => java/htmlunit/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +1 -0
@@ 1,1 1,2 @@
/Users/hrbrmstr/packages/htmlunit/java/htmlunit/src/main/java/is/rud/htmlunit/App.java
/Users/hrbrmstr/packages/htmlunit/java/htmlunit/src/main/java/is/rud/htmlunit/Zapp.java

D java/htmlunit/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst => java/htmlunit/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +0 -0

D java/htmlunit/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst => java/htmlunit/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +0 -1
@@ 1,1 0,0 @@
/Users/hrbrmstr/packages/htmlunit/java/htmlunit/src/test/java/is/rud/htmlunit/AppTest.java

M man/htmlunit.Rd => man/htmlunit.Rd +1 -2
@@ 3,7 3,6 @@
\docType{package}
\name{htmlunit}
\alias{htmlunit}
\alias{htmlunit-package}
\title{Tools to Scrape Dynamic Web Content via the 'HtmlUnit' Java Library}
\description{
\code{HtmlUnit} (\url{http://htmlunit.sourceforge.net/}) is \emph{a "'GUI'-Less


@@ 17,7 16,7 @@ information from web sites.}
}
\details{
Tools are provided to work with this library at a higher level than provided by
the exposed 'Java' libraries in the \href{https://gitlab.com/hrbrmstr/htmlunitjars}{htmlunitjars}
the exposed 'Java' libraries in the \href{https://gitlab.com/hrbrmstr/htmlunitjars}{\code{htmlunitjars}}
package.
\itemize{
\item URL: \url{https://gitlab.com/hrbrmstr/htmlunit}

M man/hu_read_html.Rd => man/hu_read_html.Rd +11 -5
@@ 4,11 4,17 @@
\alias{hu_read_html}
\title{Read HTML from a URL with Browser Emulation & in a JavaScript Context}
\usage{
hu_read_html(url, emulate = c("best", "chrome", "firefox", "ie"),
  ret = c("html_document", "text"), js_delay = 2000L,
  timeout = 30000L, ignore_ssl_errors = TRUE, enable_dnt = FALSE,
  download_images = FALSE, options = c("RECOVER", "NOERROR",
  "NOBLANKS"))
hu_read_html(
  url,
  emulate = c("best", "chrome", "firefox", "ie"),
  ret = c("html_document", "text"),
  js_delay = 2000L,
  timeout = 30000L,
  ignore_ssl_errors = TRUE,
  enable_dnt = FALSE,
  download_images = FALSE,
  options = c("RECOVER", "NOERROR", "NOBLANKS")
)
}
\arguments{
\item{url}{URL to retrieve}

M man/wc_css.Rd => man/wc_css.Rd +8 -4
@@ 22,9 22,13 @@ The caller does not have to assign the output of this function to a
variable as the browser state is managed internally by HtmlUnit.
}
\seealso{
Other wc_opts: \code{\link{wc_dnt}}, \code{\link{wc_geo}},
  \code{\link{wc_img_dl}}, \code{\link{wc_resize}},
  \code{\link{wc_timeout}},
  \code{\link{wc_use_insecure_ssl}}, \code{\link{wc_wait}}
Other wc_opts: 
\code{\link{wc_dnt}()},
\code{\link{wc_geo}()},
\code{\link{wc_img_dl}()},
\code{\link{wc_resize}()},
\code{\link{wc_timeout}()},
\code{\link{wc_use_insecure_ssl}()},
\code{\link{wc_wait}()}
}
\concept{wc_opts}

M man/wc_dnt.Rd => man/wc_dnt.Rd +8 -4
@@ 22,9 22,13 @@ The caller does not have to assign the output of this function to a
variable as the browser state is managed internally by HtmlUnit.
}
\seealso{
Other wc_opts: \code{\link{wc_css}}, \code{\link{wc_geo}},
  \code{\link{wc_img_dl}}, \code{\link{wc_resize}},
  \code{\link{wc_timeout}},
  \code{\link{wc_use_insecure_ssl}}, \code{\link{wc_wait}}
Other wc_opts: 
\code{\link{wc_css}()},
\code{\link{wc_geo}()},
\code{\link{wc_img_dl}()},
\code{\link{wc_resize}()},
\code{\link{wc_timeout}()},
\code{\link{wc_use_insecure_ssl}()},
\code{\link{wc_wait}()}
}
\concept{wc_opts}

M man/wc_geo.Rd => man/wc_geo.Rd +8 -4
@@ 22,9 22,13 @@ The caller does not have to assign the output of this function to a
variable as the browser state is managed internally by HtmlUnit.
}
\seealso{
Other wc_opts: \code{\link{wc_css}}, \code{\link{wc_dnt}},
  \code{\link{wc_img_dl}}, \code{\link{wc_resize}},
  \code{\link{wc_timeout}},
  \code{\link{wc_use_insecure_ssl}}, \code{\link{wc_wait}}
Other wc_opts: 
\code{\link{wc_css}()},
\code{\link{wc_dnt}()},
\code{\link{wc_img_dl}()},
\code{\link{wc_resize}()},
\code{\link{wc_timeout}()},
\code{\link{wc_use_insecure_ssl}()},
\code{\link{wc_wait}()}
}
\concept{wc_opts}

M man/wc_img_dl.Rd => man/wc_img_dl.Rd +8 -4
@@ 22,9 22,13 @@ The caller does not have to assign the output of this function to a
variable as the browser state is managed internally by HtmlUnit.
}
\seealso{
Other wc_opts: \code{\link{wc_css}}, \code{\link{wc_dnt}},
  \code{\link{wc_geo}}, \code{\link{wc_resize}},
  \code{\link{wc_timeout}},
  \code{\link{wc_use_insecure_ssl}}, \code{\link{wc_wait}}
Other wc_opts: 
\code{\link{wc_css}()},
\code{\link{wc_dnt}()},
\code{\link{wc_geo}()},
\code{\link{wc_resize}()},
\code{\link{wc_timeout}()},
\code{\link{wc_use_insecure_ssl}()},
\code{\link{wc_wait}()}
}
\concept{wc_opts}

M man/wc_resize.Rd => man/wc_resize.Rd +8 -4
@@ 22,9 22,13 @@ The caller does not have to assign the output of this function to a
variable as the browser state is managed internally by HtmlUnit.
}
\seealso{
Other wc_opts: \code{\link{wc_css}}, \code{\link{wc_dnt}},
  \code{\link{wc_geo}}, \code{\link{wc_img_dl}},
  \code{\link{wc_timeout}},
  \code{\link{wc_use_insecure_ssl}}, \code{\link{wc_wait}}
Other wc_opts: 
\code{\link{wc_css}()},
\code{\link{wc_dnt}()},
\code{\link{wc_geo}()},
\code{\link{wc_img_dl}()},
\code{\link{wc_timeout}()},
\code{\link{wc_use_insecure_ssl}()},
\code{\link{wc_wait}()}
}
\concept{wc_opts}

M man/wc_timeout.Rd => man/wc_timeout.Rd +8 -4
@@ 24,9 24,13 @@ The caller does not have to assign the output of this function to a
variable as the browser state is managed internally by HtmlUnit.
}
\seealso{
Other wc_opts: \code{\link{wc_css}}, \code{\link{wc_dnt}},
  \code{\link{wc_geo}}, \code{\link{wc_img_dl}},
  \code{\link{wc_resize}},
  \code{\link{wc_use_insecure_ssl}}, \code{\link{wc_wait}}
Other wc_opts: 
\code{\link{wc_css}()},
\code{\link{wc_dnt}()},
\code{\link{wc_geo}()},
\code{\link{wc_img_dl}()},
\code{\link{wc_resize}()},
\code{\link{wc_use_insecure_ssl}()},
\code{\link{wc_wait}()}
}
\concept{wc_opts}

M man/wc_use_insecure_ssl.Rd => man/wc_use_insecure_ssl.Rd +8 -4
@@ 23,9 23,13 @@ The caller does not have to assign the output of this function to a
variable as the browser state is managed internally by HtmlUnit.
}
\seealso{
Other wc_opts: \code{\link{wc_css}}, \code{\link{wc_dnt}},
  \code{\link{wc_geo}}, \code{\link{wc_img_dl}},
  \code{\link{wc_resize}}, \code{\link{wc_timeout}},
  \code{\link{wc_wait}}
Other wc_opts: 
\code{\link{wc_css}()},
\code{\link{wc_dnt}()},
\code{\link{wc_geo}()},
\code{\link{wc_img_dl}()},
\code{\link{wc_resize}()},
\code{\link{wc_timeout}()},
\code{\link{wc_wait}()}
}
\concept{wc_opts}

M man/wc_wait.Rd => man/wc_wait.Rd +8 -4
@@ 19,9 19,13 @@ The caller does not have to assign the output of this function to a
variable as the browser state is managed internally by HtmlUnit.
}
\seealso{
Other wc_opts: \code{\link{wc_css}}, \code{\link{wc_dnt}},
  \code{\link{wc_geo}}, \code{\link{wc_img_dl}},
  \code{\link{wc_resize}}, \code{\link{wc_timeout}},
  \code{\link{wc_use_insecure_ssl}}
Other wc_opts: 
\code{\link{wc_css}()},
\code{\link{wc_dnt}()},
\code{\link{wc_geo}()},
\code{\link{wc_img_dl}()},
\code{\link{wc_resize}()},
\code{\link{wc_timeout}()},
\code{\link{wc_use_insecure_ssl}()}
}
\concept{wc_opts}

M man/web_client.Rd => man/web_client.Rd +10 -4
@@ 5,11 5,17 @@
\alias{webclient}
\title{Create a new HtmlUnit WebClient instance}
\usage{
web_client(emulate = c("best", "chrome", "firefox", "ie"),
  proxy_host = NULL, proxy_port = NULL)
web_client(
  emulate = c("best", "chrome", "firefox", "ie"),
  proxy_host = NULL,
  proxy_port = NULL
)

webclient(emulate = c("best", "chrome", "firefox", "ie"),
  proxy_host = NULL, proxy_port = NULL)
webclient(
  emulate = c("best", "chrome", "firefox", "ie"),
  proxy_host = NULL,
  proxy_port = NULL
)
}
\arguments{
\item{emulate}{browser to emulate; one of "\code{best}", "\code{chrome}", "\code{firefox}", "\code{ie}"}