Socket
Socket
Sign inDemoInstall

2ch-parser

Package Overview
Dependencies
42
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    2ch-parser

This module is a parser for 2ch, the most famous BBS in Japan.


Version published
Weekly downloads
75
increased by87.5%
Maintainers
1
Install size
4.52 MB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 01 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc