Repository Details
Shared by
HelloGitHub Rating
0 ratings
抓取和解析 HTML 的 Java 库
Past 7 days Received 3 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周二 | 11,415 | — |
| 周三 | 11,415 | 0 |
| 周四 | 11,415 | 0 |
| 周五 | 11,414 | -1 |
| 周六 | 11,415 | +1 |
| 周日 | 11,416 | +1 |
| 周一 | 11,418 | +2 |
11.4k
Stars
No
Chinese
Java
Language
Yes
Active
137
Contributors
13
Issues
No
Organization
None
Latest
2k
Forks
MIT
License
抓取和解析 HTML 的 Java 库。可能很多人都知道这个库,我就不多说什么了。想知道上手有多快?看完示例代码你就算会用了
```java
Document doc = Jsoup.connect("https://en.wikipedia.org/").get();
log(doc.title());
Elements newsHeadlines = doc.select("#mp-itn b a");
for (Element headline : newsHeadlines) {
log("%s\n\t%s",
headline.attr("title"), headline.absUrl("href"));
}
```
Included in:
Vol.59
Comments
Rating:
No comments yet