This is what worked for me since I needed these objects in a for
loop:
time.text();
Question
So I need to get the time between the divs.
<div class="episodeTime">12:00 am</div>
Using jsoup, the closest answer I could find to this was:
Document doc = Jsoup.parse(html);
Elements times = doc.select("div[class=episodeTime]");
Element time = times.first();
However, time
continues to return null. I have scoured the jsoup documentation along with questions here about it and cannot find a correct answer. I'm not a jsoup guru so any help is greatly appreciated.
Solution
This is what worked for me since I needed these objects in a for
loop:
time.text();