Reputation: 73
so i am trying to get an HTML element from a website using Jsoup, but the HTML that i get from the Jsoup.connect(url) is not complete compared to the one that i get using the inspector on the website.
EDIT : this is the link i'm working with https://www.facebook.com/livemap#@35.831640894,24.82275312499999,2z
The numbers in the end designate the coordinates of the map, and you don't have to sign in to access the page, so there is no authentication problem
UPDATE :
So i have found that the element that i want does not get expanded using jsoup, is this a problem related to slow page loading ? If so, how can i make sure that Jsoup.connect(url) fully loads the webpage before fetching the HTML
from inspector (the <div id="u_0_e">
is expanded)
from jsoup.connect (the <div id="u_0_e">
is not expanded)
Upvotes: 1
Views: 96
Reputation: 1
Jsoup dont execute javascript or jQuery events, so you will get a initial page before executing javascript.
Upvotes: 0