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!
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!
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);
}