Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set<String> result = new HashSet<String>();
- String request = "https://www.google.com/search?q=" + query + "&num=20";
- Document doc = Jsoup
- .connect(request)
- .userAgent(
- "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")
- .timeout(5000).get();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement