javascript - Get data from web page using Jsoup return empty results -
i working in wheather conditions web. http://trestlebikepark.com/
when use inspect element function chrome or firefox find div class text need (34f).
<div class="overlayweather"> <div class="title">current</div> <div class="icon"><span class="climacon sun"></span></div> <div class="temperature">34 °f</div> <div class="conditions">sunny</div> </div> but in source code content empty.
<div class="currentstatusoverlay"> <div class="overlayweather"> <div class="title">current</div> <div class="icon"><span class="climacon"></span></div> <div class="temperature"></div> <div class="conditions"></div> </div> </div> how can texts?
i tried
document doc = jsoup.connect(url).get(); elements div = doc.select("div.temperature"); string temp = div.text(); i receive empty results
i understand table populated after page loaded, cant find information on how values in android textview
another way instead of jsoup: send http request to
https://secure.winterparkresort.com/json/rtpjsonservices.asmx/gettrestleconditions?callback=null this give json like:
null({"iconclass":"sun","temperature":34,"conditions":"sunny","openlifts":0,"opentrails":0}); and have information want.
Comments
Post a Comment