Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Document doc = Jsoup.connect("http://wikitravel.org/en/San_Francisco").get();
- Elements section = doc.select("h3:contains(climate) ~ *");
- section.select("h3:contains(literature) ~ *").remove();
- section.select("h3").remove();
- System.out.println(section.html());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement