package kr.co.swh.lecture.opensource.jsoup;

import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

/**
 * <pre>
 * kr.co.swh.lecture.opensource.jsoup
 * JsoupCrawlerMain.java
 *
 * 설명 :JSOUP 예제
 * </pre>
 * 
 * @since : 2018. 1. 29.
 * @author : tobby48
 * @version : v1.0
 */
public class JsoupCrawlerMain {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		Document doc = Jsoup.connect("http://sports.news.naver.com/tennis/news/read.nhn?oid=001&aid=0009842744").get();
		System.out.println(doc.title());
		System.out.println(doc.getElementById("newsEndContents"));
	}

}
