Skip to content

mrhorin/2ch-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2ch-parser

Build Status npm version

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

GPL-2.0

Author

mrhorin

About

A parser for 2ch, most famous BBS in Japan

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published