質問

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.

役に立ちましたか?

解決

This is what worked for me since I needed these objects in a for loop:

time.text();
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top