1

Im newbie in Nagios.. How to create HTML parsing Nagios raw data using Regex in Android? It is takes from nagios status.dat or status.cgi? can anyone help or give any suggestions..

Thanks!

4

1 に答える 1

0

jsoup (Java HTML Parser) を使用して HTML を簡単に解析できます。

String url = "http://www.google.com";
List<String> images = new ArrayList<String>(); // list of images
Document doc = Jsoup.connect(url).get();
Elements img = doc.select("img");
for (Element el : img)
{
    String imageUrl = el.attr("src");
    images.add(imageUrl);
}
于 2012-11-19T18:45:55.210 に答える