0.7.0 • Published 4 years ago
2ch-parser v0.7.0
2ch-parser
This module is a parser for 2ch which is most famous BBS in Japan.
Support
This module supports some BBS compatible with 2ch, but doesn't support 5ch.net.
Installation
Install with npm.
npm install 2ch-parser
Documentation
Usage
The codes below try to fetch a list of threads and posts.
import { Board } from '2ch-parser'
var board = new Board("http://toro.2ch.sc/tech/")
board.fetchThreads((res) => {
if (res.statusCode == 200) {
console.log(board.threads)
}
})
import { Thread } from '2ch-parser'
var thread = new Thread("http://toro.2ch.sc/test/read.cgi/tech/123456789/")
thread.fetchAllPosts((res)=>{
if (res.statusCode == 200) {
console.log(thread.posts)
}
})
License
Author
0.7.0
4 years ago
0.6.0
5 years ago
0.5.0
5 years ago
0.4.0
5 years ago
0.3.0
5 years ago
0.2.8
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.5
5 years ago
0.2.4
5 years ago
0.2.3
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago