1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| package org.springblade.core.http.test;
|
| import lombok.Getter;
| import lombok.Setter;
| import org.springblade.core.http.CssQuery;
|
| /**
| * 热门博客
| */
| @Getter
| @Setter
| public class VBlog {
|
| @CssQuery(value = "a", attr = "title")
| private String title;
|
| @CssQuery(value = "a", attr = "href")
| private String href;
|
| //1341阅/9评/4赞
| @CssQuery(value = "span", attr = "text", regex = "^\\d+")
| private Integer read;
|
| @CssQuery(value = "span", attr = "text", regex = "(\\d*).*/(\\d*).*/(\\d*).*", regexGroup = 2)
| private Integer ping;
|
| @CssQuery(value = "span", attr = "text", regex = "(\\d*).*/(\\d*).*/(\\d*).*", regexGroup = 3)
| private Integer zhan;
|
| }
|
|