I want to get the first headline and print it. So far, I have looked through the HTML and found a way to search for the headlines.
data-pb-placeholder="Write headline here"
Document doc = Jsoup.connect("http://www.washingtonpost.com").get();
Element headline = doc.select("headline").first();
It looks like the headlines are all under
<div class="headline">. You can use CSS selectors to target these and extract their text node.
Document doc = Jsoup.connect("http://www.washingtonpost.com").get(); for (Element headline : doc.select("div.headline")) System.out.println(headline.text());