# fetch-fukkan-comments

> - 復刊ドットコムの復刊投票コメントを取得する - 取得した内容を CSV ファイルとして書き出す

Latest version **1.0.1** (published 2022-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install fetch-fukkan-comments
pnpm add fetch-fukkan-comments
yarn add fetch-fukkan-comments
bun add fetch-fukkan-comments
```

Provides the command `fukkan_comments`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-07-25 |
| First published | 2022-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 268.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Osamu Takiya |
| Maintainers | takiya |

## Links

- npm: https://www.npmjs.com/package/fetch-fukkan-comments
- Repository: https://github.com/nikukyugamer/fetch-fukkan-comments
- Issues: https://github.com/nikukyugamer/fetch-fukkan-comments/issues
- npm.io page: https://npm.io/package/fetch-fukkan-comments

## Dependencies (3)

- [fast-csv](https://npm.io/package/fast-csv.md) 4.3.6
- [commander](https://npm.io/package/commander.md) 9.4.0
- [playwright](https://npm.io/package/playwright.md) 1.24.0

## Recent versions

- 1.0.1 (latest) — 2022-07-25
- 1.0.0 — 2022-07-25

## README

# Fetch Fukkan Comments
- 復刊ドットコムの復刊投票コメントを取得する
  - 取得した内容を CSV ファイルとして書き出す

# 使い方
- 対象の本のページの URL から `book_number` を取得する
  - 例えば `https://www.fukkan.com/fk/VoteDetail?no=2728` という URL の場合は `book_number` は `2728` になる
- `fetch-fukkan-comments` を npm でインストールし、`book_number` と `page` と `output` の引数を指定してコマンド実行する
  - `page` はコメントのページ番号になる
    - 並び順は「新しい順」のときのページ番号になる
  - `output` は出力する CSV のファイルパスになる

```bash
$ npm install -g fetch-fukkan-comments
```

```bash
$ fukkan_comments --help
Usage: fukkan_comments [options]

Options:
  -V, --version             output the version number
  -b, --book <book_number>  Book number
  -p, --page <page_number>  Page number (default: "1")
  -o, --output <filepath>   Output filepath (default: "fukkan_comments.csv")
  -h, --help                display help for command
```

```bash
$ fukkan_comments --book 2728 --page 2 --output /tmp/fukkan_comments.csv
```

# CSV ファイルの例
![CSV ファイルの例](./csv_screenshot.png)

# 資料

## Bookページ の URL
- https://www.fukkan.com/fk/VoteComment/[:bookNo]?no=[:bookNo]&page=1&s=date

## Userページ の URL
- https://www.fukkan.com/fk/user/?no=[:userId]

---
_Source: https://npm.io/package/fetch-fukkan-comments · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
