Skip to content

Commit 795afeb

Browse files
committed
发布1.1.6
1 parent 26ce3a6 commit 795afeb

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,8 @@
133133

134134
- [Bump zip4j from 2.7.0 to 2.9.1](https://github.com/fanyong920/jvppeteer/commit/5e0bbeb5651d67c0fdd2d1f4c187d24a8ed1dfcc)
135135

136-
136+
### Version Release 1.1.6(2024/4/30)
137+
138+
- [过kill杀死linux上残留的chrome进程](https://github.com/fanyong920/jvppeteer/commit/efc9a2404e922b8dbbedba82b33bc11b005e0284)
139+
- [Puppeteer增加指定版本启动浏览器](https://github.com/fanyong920/jvppeteer/commit/6b8855c5f01ddd64dfbc5a0a1b98f8733afed02a)
137140

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
## 注意
13-
>通过maven导入的jar包,1.1.5及之前的版本,都存在linux上杀不死chrome的bug,可以通过<a href="https://github.com/fanyong920/jvppeteer/blob/master/1.1.5%E7%89%88%E6%9C%AC%E4%B9%8B%E5%89%8D%E7%9A%84%E5%86%85%E5%AD%98%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88.md" alt="链接"> 1.1.5版本之前的内存问题解决方案</a> 自行解决,仓库的代码已经将解决方案代码加上了,拉取下来打jar也可以用,但是新版本尚没有上传到maven
13+
>通过maven导入的jar包,1.1.5及之前的版本,都存在linux上杀不死chrome的bug,可以通过<a href="https://github.com/fanyong920/jvppeteer/blob/master/1.1.5%E7%89%88%E6%9C%AC%E4%B9%8B%E5%89%8D%E7%9A%84%E5%86%85%E5%AD%98%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88.md" alt="链接"> 1.1.5版本之前的内存问题解决方案</a> 自行解决,仓库的代码已经将解决方案代码加上了,拉取下来打jar也可以用
1414
1515

1616
**本库的灵感来自 [Puppeteer(Node.js)](https://github.com/puppeteer/puppeteer), API 也与其基本上保持一致,做这个库是为了方便使用 Java 操控 Chrome 或 Chromium**
@@ -48,7 +48,7 @@
4848
<dependency>
4949
<groupId>io.github.fanyong920</groupId>
5050
<artifactId>jvppeteer</artifactId>
51-
<version>1.1.5</version>
51+
<version>1.1.6</version>
5252
</dependency>
5353
```
5454

example/pom.xml

+7-10
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
<maven.compiler.source>1.8</maven.compiler.source>
1111
<maven.compiler.target>1.8</maven.compiler.target>
1212
<junit.version>4.13.1</junit.version>
13-
<cdt.version>2.1.0</cdt.version>
13+
<cdt.version>4.0.0</cdt.version>
1414
<slf4j.version>1.7.25</slf4j.version>
15-
<logback.version>1.2.3</logback.version>
16-
<httpclient.version>4.5.13</httpclient.version>
17-
<guava.version>29.0-jre</guava.version>
15+
<logback.version>1.4.12</logback.version>
16+
<httpclient.version>4.5.14</httpclient.version>
17+
<guava.version>33.2.1-jre</guava.version>
1818
<jsoup.version>1.11.3</jsoup.version>
19-
<htmlunit.version>2.38.0</htmlunit.version>
19+
<htmlunit.version>2.70.0</htmlunit.version>
2020
<httpasyncclient.version>4.1.4</httpasyncclient.version>
21-
<nuprocess.version>2.0.0</nuprocess.version>
21+
<nuprocess.version>2.0.5</nuprocess.version>
2222
<htmlparse.version>2.1</htmlparse.version>
23-
<jvppeteer.version>1.1.5</jvppeteer.version>
23+
<jvppeteer.version>1.1.6</jvppeteer.version>
2424
<htmlunit.version>2.38.0</htmlunit.version>
2525
</properties>
2626
<dependencies>
@@ -33,15 +33,12 @@
3333
<groupId>com.github.kklisura.cdt</groupId>
3434
<artifactId>cdt-java-client</artifactId>
3535
<version>${cdt.version}</version>
36-
3736
</dependency>
3837
<dependency>
3938
<groupId>net.sourceforge.htmlunit</groupId>
4039
<artifactId>htmlunit</artifactId>
4140
<version>${htmlunit.version}</version>
42-
4341
</dependency>
44-
<!-- https://mvnrepository.com/artifact/org.htmlparser/htmlparser -->
4542
<dependency>
4643
<groupId>org.htmlparser</groupId>
4744
<artifactId>htmlparser</artifactId>

example/src/main/java/com/ruiyun/example/PageOnExample.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static void main(String[] args) throws Exception {
1313

1414
ArrayList<String> arrayList = new ArrayList<>();
1515

16-
LaunchOptions options = new LaunchOptionsBuilder().withArgs(arrayList).withHeadless(true).build();
16+
LaunchOptions options = new LaunchOptionsBuilder().withArgs(arrayList).withHeadless(false).build();
1717
arrayList.add("--no-sandbox");
1818
arrayList.add("--disable-setuid-sandbox");
1919
Browser browser = Puppeteer.launch(options);

example/src/main/java/com/ruiyun/example/PagePDFExample3.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ public static void main(String[] args) throws IOException, InterruptedException,
3232
Page page3 = browser.newPage();
3333
page3.goTo("https://www.baidu.com/?tn=98012088_10_dg&ch=3");
3434
Helper.commonExecutor().submit(() -> {
35-
page2.emulateVisionDeficiency(VisionDeficiency.DEUTERANOPIA);
35+
//page2.emulateVisionDeficiency(VisionDeficiency.DEUTERANOPIA);
3636
try {
3737
page2.pdf("deuteranopia.pdf");
3838
} catch (IOException e) {
3939
e.printStackTrace();
4040
}
4141
});
4242
Helper.commonExecutor().submit(() -> {
43-
page3.emulateVisionDeficiency(VisionDeficiency.BLURREDVISION);
43+
//page3.emulateVisionDeficiency(VisionDeficiency.BLURREDVISION);
4444
try {
4545
page3.pdf("blurred-vision.pdf");
4646
} catch (IOException e) {
4747
e.printStackTrace();
4848
}
4949
});
50-
page.emulateVisionDeficiency(VisionDeficiency.ACHROMATOPSIA);
50+
//page.emulateVisionDeficiency(VisionDeficiency.ACHROMATOPSIA);
5151
page.pdf("achromatopsia.pdf");
5252

5353

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>io.github.fanyong920</groupId>
66
<artifactId>jvppeteer</artifactId>
77
<packaging>jar</packaging>
8-
<version>1.1.5</version>
8+
<version>1.1.6</version>
99
<name>jvppeteer</name>
1010
<description>java version of puppeteer</description>
1111
<url>https://github.com/fanyong920/jvppeteer</url>

0 commit comments

Comments
 (0)