天天看點

htmlunit填坑

htmlunit 無頭浏覽器 爬蟲使用填坑:

<!-- htmlunit start -->

<dependency>

<groupId>org.jsoup</groupId>

<artifactId>jsoup</artifactId>

<version>1.10.3</version>

</dependency>

<groupId>net.sourceforge.htmlunit</groupId>

<artifactId>htmlunit</artifactId>

<version>2.19</version>

<groupId>xml-apis</groupId>

<artifactId>xml-apis</artifactId>

<version>1.4.01</version>

<groupId>xerces</groupId>

<artifactId>xercesImpl</artifactId>

<version>2.11.0</version>

<groupId>org.apache.httpcomponents</groupId>

<artifactId>httpcore</artifactId>

<version>4.4.6</version>

<artifactId>httpclient</artifactId>

<version>4.5.1</version>

<groupId>commons-io</groupId>

<artifactId>commons-io</artifactId>

<version>2.4</version>

<!-- htmlunit end -->

以上為htmlunit2.19版本所有依賴 ,不同版本存在較大差異