Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hyeongukryu/kaist-today-notice
KAIST 오늘의 공지사항
https://github.com/hyeongukryu/kaist-today-notice
puppeteer scraping
Last synced: 12 days ago
JSON representation
KAIST 오늘의 공지사항
- Host: GitHub
- URL: https://github.com/hyeongukryu/kaist-today-notice
- Owner: hyeongukryu
- License: mit
- Created: 2017-06-25T17:18:47.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-12-20T07:47:20.000Z (about 2 months ago)
- Last Synced: 2024-12-20T08:31:13.422Z (about 2 months ago)
- Topics: puppeteer, scraping
- Language: TypeScript
- Size: 873 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kaist-today-notice
- KAIST 오늘의 공지사항
- 품질이나 안정성을 보장하지 않습니다.
- generateOtp는 6자리 KAIST OTP를 계산해야 하며, 계산 방법은 공개하지 않습니다. 60초 OTP 윈도 종료가 임박한 경우, 다음 윈도가 시작한 이후에 `Promise`를 resolve하십시오.```bash
npm install kaist-today-notice
``````TypeScript
import run from 'kaist-today-notice';async function main() {
try {
const notices = await run({
id: 'ID', // required
password: 'PASSWORD', // required
generateOtp: () => Promise, // required
size: 10, // optional
lang: 'ko' // optional
});
console.log(notices);
} catch (e) {
console.error(e);
}
}
main();
``````TypeScript
interface KaistTodayNotice {
title: string;
link: string;
organization: string;
author: string;
views: number;
date: string;
}[
{
title: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
link: 'https://portal.kaist.ac.kr/ennotice/lorem_ipsum/42',
organization: '전산학부',
author: '넙죽이',
views: 42,
date: '1971-02-16',
},
// ...more results
]
```