- 授权协议: MIT
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://github.com/code4craft/xsoup
- 软件文档: https://github.com/code4craft/xsoup
软件介绍
Xsoup是基于Jsoup开发的HTML抽取器,提供了XPath支持。
相比另一个常用的基于XPath的HTML抽取器HtmlCleaner,Xsoup有较大的性能优势,解析时间和抽取时间都只有HtmlCleaner的一半。同时Xsoup提供全面的XPath解析错误提示。
示例代码:
@Test
public void testSelect() {
String html = "<html><div><a href='https://github.com'>github.com</a></div></html>";
Document document = Jsoup.parse(html);
String result = Xsoup.select(document, "//a/@href").get();
Assert.assertEquals("https://github.com", result);
result = Xsoup.compile("//a/@href").evaluate(document).get();
Assert.assertEquals("https://github.com", result);
}
Head First WordPress
Siarto Jeff / O'Reilly Media / 2010-02-15 / USD 34.99
Whether you're promoting your business or writing about your travel adventures, "Head First WordPress" will teach you not only how to make your blog look unique and attention-grabbing, but also how to......一起来看看 《Head First WordPress》 这本书的介绍吧!
