我正在尝试使用 jsoup 获取参数值,但我无法做到这一点。
这是 HTML 示例:
<object id="a5514fbc4f070b58cfbfb2a17ad3011a" name="a5514fbc4f070b58cfbfb2a17ad3011a" type="application/x-shockwave-flash" data="http://player.sambatech.com.br/current/2.0.57/profiles/samba/sambaPlayer.swf" width="620" height="410">
<param name="flashvars" value="http://webcast.sambatech.com.br/80479D/origin1/account/143/3/2012-12-14/video/89903bb228d0af488d9dbb1228c3728a/121412AlbertoAcostaSeguridad.mp4">
</object>
这是我迄今为止尝试过的,但没有运气:
Document doc = Jsoup.connect(providerUrl).get();
Element p_un = doc.select("param[name=flashvars]").first();
String v = p_un.attr("value");
请我需要帮助。