Advertisement
Guest User

Untitled

a guest
Aug 1st, 2012
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. import java.io.IOException;
  2. import org.jsoup.Jsoup;
  3. import org.jsoup.nodes.Document;
  4. public class test
  5. {
  6.     public static void main(String[] args) throws IOException
  7.     {
  8.         Document doc = Jsoup.connect("http://wikitravel.org/en/San_Francisco").get();
  9.         System.out.println(doc.select("h2:contains(Get around) ~ *:not(h2:contains(See) ~ *)"));
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement