samedi 20 juin 2015

Jsoup not displaying a single element form elements

i am trying to print some data from an element using foreach loop in Jsoup, java. but it is not working and not even displaying anything code:

         Document doc = Jsoup.connect("SOME LINK..........").get();
         try{
         Elements pro= doc.select("div.[some class]");
        for (Element e : pro){
            System.out.println(e.text());
        }}
         catch(Exception e){
             System.out.println("caught");
         }

Aucun commentaire:

Enregistrer un commentaire