摘要: 参照:http://www.open-open.com/jsoup/selector-syntax.htm使用选择器语法来查找元素问题你想使用类似于CSS或jQuery的语法来查找和操作元素。方法可以使用Element.select(String selector)和Elements.select(String selector)方法实现:File input = new File("/tmp/input.html");Document doc = Jsoup.parse(input, "UTF-8", "http://example.com/ 阅读全文
posted @ 2013-12-26 09:18 cphmvp 阅读(367) 评论(0) 推荐(0) 编辑
爬虫在线测试小工具: http://tool.haoshuju.cn/