JSoup QUERY
来源:互联网 发布:光环大数据坑吗 编辑:程序博客网 时间:2024/06/05 05:03
Document doc = JSoup.parse(googleURL);doc.select("cite") //to get all the cite elements in the pagedoc.select("li > cite") //to get all the <cites>'s that only exist under the <li>'sdoc.select("li.g cite") //to only get the <cite> tags under <li class=g> tagspublic static void main(String[] args) throws IOException { String html = getHTML(); Document doc = Jsoup.parse(html); Elements elems = doc.select("li.g > cite"); for(Element elem: elems){ System.out.println(elem.toString()); }}
一个号网站
http://www.oschina.net/question/12_14127
0 0
- JSoup QUERY
- jsoup
- jsoup
- jsoup
- jsoup
- jsoup
- jsoup
- jsoup
- jsoup
- Jsoup
- jsoup
- jsoup
- jsoup
- Jsoup
- Jsoup
- Jsoup
- jsoup
- jsoup
- uva442-Matrix Chain Multiplication
- Recover Deleted Linux Files With lsof
- codeforces round 252 (div.2 ) D
- 要换个发型+不要在床上办公
- 字符串的所有组合
- JSoup QUERY
- C++语言之参数传递
- 2011Android技术面试整理附有详细答案(包括百度、新浪、中科软等多家公司笔试面试题)
- C++实现队列(数组版)
- linux下安装vsftp
- 网络I/O虚拟化
- 你真的了解HTML吗?–雅虎面试题
- 博客开篇
- 从UE成为产品管理