Skip to contents

Get daum news sub category names and urls recently.

Usage

getSubCategory(categoryUrl = "society", fresh = FALSE)

Arguments

categoryUrl

Main category url in daum news. Only 1 value is passible. Default is society.

fresh

If TRUE, get data from internet. Default is FALSE which is return with cache.

Value

Get data.frame(chr:sub_cate_name, chr:url).

Examples

  getSubCategory()
#>    sub_cate_name                                      url
#> 2      사건/사고             /breakingnews/society/affair
#> 3           인물             /breakingnews/society/people
#> 4           교육          /breakingnews/society/education
#> 5         미디어              /breakingnews/society/media
#> 6           여성              /breakingnews/society/woman
#> 7           복지            /breakingnews/society/welfare
#> 8       사회일반             /breakingnews/society/others
#> 9           노동              /breakingnews/society/labor
#> 10          환경        /breakingnews/society/environment
#> 11          전국             /breakingnews/society/nation
#> 12          서울       /breakingnews/society/nation/seoul
#> 13        수도권       /breakingnews/society/nation/metro
#> 14          강원     /breakingnews/society/nation/gangwon
#> 15          충청 /breakingnews/society/nation/chungcheong
#> 16          경상  /breakingnews/society/nation/gyeongsang
#> 17          전라      /breakingnews/society/nation/jeolla
#> 18          제주        /breakingnews/society/nation/jeju
#> 19      지역일반      /breakingnews/society/nation/others
  getSubCategory("politics")
#>    sub_cate_name                                   url
#> 21   행정/지자체 /breakingnews/politics/administration
#> 31     국회/정당       /breakingnews/politics/assembly
#> 41          북한          /breakingnews/politics/north
#> 51      정치일반         /breakingnews/politics/others
#> 61     외교/국방       /breakingnews/politics/dipdefen
#> 71        청와대      /breakingnews/politics/president