Skip to contents

Get Max Page Number

Usage

getMaxPageNum(turl, max = 100)

Arguments

turl

is target url include sid1, sid2, date like below. <http://news.naver.com/main/list.nhn?sid2=265&sid1=100&mid=shm&mode=LS2D&date=20161102>

max

is also interval to try max page number is numeric. Default is 100.

Value

Get numeric

Examples

if (FALSE) {
  getMaxPageNum("https://news.naver.com/main/list.naver?mode=LS2D&mid=shm&sid1=103&sid2=376")
  }