Skip to content

Instantly share code, notes, and snippets.

@devbhuwan
Created July 16, 2015 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devbhuwan/1737a24c1066b17e7f09 to your computer and use it in GitHub Desktop.
Save devbhuwan/1737a24c1066b17e7f09 to your computer and use it in GitHub Desktop.
jsoup
/**
*
* @author developerbhuwan
*/
public class JsoupExample {
private static final String URL = "http://www.bhuwanupadhyay.com.np/";
public static void main(String[] args) {
try {
Document document = Jsoup.connect(URL).get();
Elements footer = document.getElementsByTag("footer");
System.out.println("---------Reading------");
for(Element e :footer) {
System.out.println(e.val());
}
} catch (IOException ex) {
Logger.getLogger(JsoupExample.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment