There is my html input:
<!-- left panel -->
<div class="left-panel">
<p class="article-published"> 1. júl 2015 o 17:35 Marek Hudec, Dávid Tvrdoň </p>
</div>
and the code:
if(doc.select("p[class=article-published]").isEmpty() == FALSE){
Elements description = doc.select("p[class=article-published]");
for (Element link : description) {
author4 = link.text();
}
System.out.println("AUTHORS :" + author4);
}
I would like to get the output, like: Marek Hudec, Dávid Tvrdoň. So only the name of those guys. But yet I can not got it. Someone help me please. Thank you
FALSE
should befalse
, unless you are defining some constantFALSE
above.