Re: [問題] Jsoup 解析網頁問題
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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):