Skip to content

Commit

Permalink
fix(noticeCrawling): 공간정보시스템공학과 크롤링 시 공지사항 2, 3페이지도 크롤링하도록 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Jan 3, 2024
1 parent e1fda38 commit 37f79ac
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/crawling/noticeCrawling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 37f79ac

Please sign in to comment.