pttcrawler
v0.0.5
Published
a ptt crawler
Downloads
4
Readme
Ptt Crawler
The ptt Crawler could get data from almost of the ptt's board like Gossiping.
Installation
npm install pttcrawler
Start to crawler
var pttCrawler = require('pttCrawler');
pttCrawler.crawler( 'Gossiping', 0, 1, function (result) {
console.dir( result);
});
Include the module and call the crawler method. And ...... Surprise!! There is not any steps, just keep waiting for a moment or read the progress in the terminal.
Function
Object.crawler(board, startFrom, pages, callback);
board { String } BoardName. You could look for BoardName from here Notice! The upper case and lowercase letter must be the same as the example in website above.
startFrom { Int } The first page you want to start to crawler, you could look for the number from the board in browser urls line.
pages { Int } Enter the number how many pages you want to crawler. callback { Function } Callback function, it would return a object. License
The pttCrawler is authorized to Academic use.
Copyright(c) 2016-2020 Bo-Wei Huang
National Dong Hwa University
MIT Licensed