naver-js
v0.0.4
Published
Unofficial Naver Cafe Toolkit For Automation
Downloads
3
Readme
Installation
npm install naver-js
Usage
Quickstart
// Options for background chrome session (check `CrawlerOptions`)
const client = new Client(options)
// Bootstrap for headless chromium =)
await client.bootstrap()
// (Optional) Naver Login =)
await client.auth.login('YOUR_ID', 'YOUR_PW')
// # 1. Get Cafe's categories with url
const categories = await client.category.retrieve(NAVER_CAFE_URL)
// # 2. Read Cafe's articles with url, page, and article count
const articles = await client.article.retrieve(NAVER_CAFE_BOARD_URL, 1, 50)
// Gracefully shutdown
await client.shutdown()