0.0.2 • Published 6 years ago

ptt-article-extract v0.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

ptt-article-extract

A simple PTT article extractor

Install

npm install -save ptt-article-extract

Usage

const pttArticleExtract = require('ptt-article-extract');

pttArticleExtract({
    board: 'your board name',
    articleId: 'your article id'
})
    .then(article => {
        console.log(article);
    })
    .catch(error => {
        console.log(error);
    });

example

const pttArticleExtract = require('ptt-article-extract');

pttArticleExtract({
    board: 'Soft_Job',
    articleId: 'M.1501827536.A.DF2'
})
    .then(article => {
        console.log(article);
    })
    .catch(error => {
        console.log(error);
    });
0.0.2

6 years ago

0.0.1

6 years ago