diff --git a/src/config/crawlingURL.ts b/src/config/crawlingURL.ts index 454ffdb..bca2e58 100644 --- a/src/config/crawlingURL.ts +++ b/src/config/crawlingURL.ts @@ -16,6 +16,10 @@ export const PKNU_URL = { export const MAJOR_URL = { spatial_information_system_engineering_notice: 'http://geoinfo.pknu.ac.kr/05piazza/08.php', + spatial_information_system_engineering_notice2: + 'http://geoinfo.pknu.ac.kr/05piazza/08.php?p=2&key=&keyword=&bbscode=cate0501&reCategory=', + spatial_information_system_engineering_notice3: + 'http://geoinfo.pknu.ac.kr/05piazza/08.php?p=3&key=&keyword=&bbscode=cate0501&reCategory=', biomedical_engineering_notice: 'http://bme.pknu.ac.kr/bbs/board.php?bo_table=notice', visual_design_notice: 'https://visual.pknu.ac.kr/visual/3674', diff --git a/src/crawling/noticeCrawling.ts b/src/crawling/noticeCrawling.ts index 62eb2f2..5745c82 100644 --- a/src/crawling/noticeCrawling.ts +++ b/src/crawling/noticeCrawling.ts @@ -76,9 +76,14 @@ export const noticeListCrawling = async ( const normalNotice: string[] = []; if (link === MAJOR_URL.spatial_information_system_engineering_notice) { - const noticePage2Lists = await noticeListCrawling(link); - pinnedNotice.push(...noticePage2Lists.pinnedNotice); - normalNotice.push(...noticePage2Lists.normalNotice); + for (const spatialLink of [ + MAJOR_URL.spatial_information_system_engineering_notice2, + MAJOR_URL.spatial_information_system_engineering_notice3, + ]) { + const noticePage2Lists = await noticeListCrawling(spatialLink, link); + pinnedNotice.push(...noticePage2Lists.pinnedNotice); + normalNotice.push(...noticePage2Lists.normalNotice); + } } tableData.each((index, element) => {