Created
July 16, 2015 18:52
-
-
Save devbhuwan/1737a24c1066b17e7f09 to your computer and use it in GitHub Desktop.
jsoup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @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