0.0.4 • Published 1 year ago

naver-js v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm version

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()
0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago