From : page to get the names from
I am trying to get the name of the people from their image tags. I am trying to do this using JSOUP. This is what I have thus far:
/**
 * Created by AakarshM on 9/28/2016.
 */
import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils;
import org.jsoup.Jsoup;
import org.jsoup.helper.Validate;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
import java.util.logging.Logger;
public class JSOUPMAIN{
    public static void main(String[] args) throws IOException{
        try {
            String url = "http://www.posh24.com/celebrities";
            Document doc = Jsoup.connect(url).get();
            Elements paragraphs = doc.select("div.channelListEntry");
            for(Element p : paragraphs)
                System.out.println(p.text());
        } catch (IOException e) {
        }
    }
}
This shows me something at the very least, it will give me the name but with additional info. Eg:
4 +12 Zayn Malik
I don't need the extra info, how can I fix this?
 
     
     
     
    