作者plokijuh (疯人院院长)
看板java
标题Re: [问题] Jsoup 解析网页问题
时间Sat Apr 14 01:54:15 2012
info.select(".center_text01_subject_i").first().childNode(0).toString();
试试看
※ 引述《pt7922310 (黑人)》之铭言:
: 我目前想解析
: http://lol.garena.tw/champions/champion-detail.php?ctitle=Ahri
: 网页里面的片段↓
: <span class="center_text01_subject_i">九尾妖狐 <span
: class="center_text01_champion_name">阿璃</span></span>
: 想取出 九尾妖狐的字串
: 我有上去看Jsoup 官方文件
: 但是还不不太懂
: 我有试着写
: String infov3 = info.select("span.classcenter_text01_subject_i").text();
: 结果跑出来
: 九尾妖狐 阿璃
: 请问各位大大要怎麽写?
: X
--
my blog
http://blog.cheyingwu.tw/
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 111.235.193.155