Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- import org.jsoup.Jsoup;
- import org.jsoup.nodes.Document;
- public class test
- {
- public static void main(String[] args) throws IOException
- {
- Document doc = Jsoup.connect("http://wikitravel.org/en/San_Francisco").get();
- System.out.println(doc.select("h2:contains(Get around) ~ *:not(h2:contains(See) ~ *)"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement