Skip to content Skip to sidebar Skip to footer

Jsoup Not Parsing Particluar Div

I am unable to get the div 'live ticker' from here using Jsoup Library. Here is my code: Document doc = Jsoup.connect(Link).get(); Element link = doc.select('div.data-of-mat

Solution 1:

The text in this tag in not part of initial html, but is set by JavaScript after page is loaded. You can check it by disabling JavaScript in your browser. Jsoup only gets static html, does not execute JavaScript code.

When you examine what connections are made from the page you will find out that the value is updated through request to this API:

https://shapeshifter-api.onefootball.com/v1/en/match/live-experience/5/6700/718129

Make a request to this url, parser result and you will get desired value.

Post a Comment for "Jsoup Not Parsing Particluar Div"