mardi 25 avril 2017

Parsing website by jsoup Java

I need to check a value on http://ift.tt/2q2RNAi from div class profile-header-extra__rank-box (pp score). But it's returns nothig from there. How to do it?

public class mainClass
{
    public static void main(String[] args) throws Exception {
        String url = "http://ift.tt/2q2RNAi";
        Document document = Jsoup.connect(url).get();

        String ppValue = document.select(".profile-header-extra__rank-global").text();
        System.out.println("PP: "+ppValue);
        }
    }




Aucun commentaire:

Enregistrer un commentaire