Update
I’m trying to extract the “Tweet Per Hour” information from here. However, When I printed out the html from jsoup, I can’t find that information anywhere.
Any tips?
I’m trying to extract the text “105 TPH” from the code below using jsoup.
<div id="speed_realtime" class="speed">
<a title="Tweets Per Hour">105 TPH</a>
</div
Will this be correct?
Element t = doc.select("a[title=Tweets Per Hour]").first();
tph = t.text();
Yep, why ? isn’t it working?
You could also do something like this:
or
take a look at the docs for more options…
Use selector-syntax to find elements
Use DOM methods to navigate a document
EDIT
try something like this