Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. // Jsoup Request
  2. Connection.Response response = Jsoup.connect(link)
  3. .timeout(-1)
  4. .userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1")
  5. .method(Connection.Method.GET).execute();
  6.  
  7. Document doc = response.parse();
  8.  
  9. // TODO: Make case insensitive search
  10. Elements elems = doc.select("*:contains(" + keyToSearch + ")");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement