Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Set<String> result = new HashSet<String>();
  2. String request = "https://www.google.com/search?q=" + query + "&num=20";
  3. Document doc = Jsoup
  4. .connect(request)
  5. .userAgent(
  6. "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")
  7. .timeout(5000).get();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement