使用Jsoup Android在脚本标记内获取值

时间:2016-12-06 21:01:49

标签: java jsoup

如何使用Jsoup获取值http://htvmoblive.1c656bad.cdnviet.com/5720e8c257ab335e961c381db953df0e1481099170/htv9.720p.stream/playlist.m3u8

screenshot

    String userAgent = "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36";
            Document doc = Jsoup.connect("http://hplus.com.vn/xem-tivi-htv3-2535.html").userAgent(userAgent).get();
            Element description = doc.select("video[id=ios-player]").first();
            imgSrc2 = description.attr("src");

请支持

0 个答案:

没有答案