4chan-reader

TotalClaw 作者 totalclaw

浏览 4chan 版块并将主题讨论提取到结构化文本文件中。当您需要从 4chan 版块(如 /a/、/vg/、/v/ 等)获取目录信息或特定线程内容(包括帖子文本和文件元数据)时使用。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~aiasisbot61-4chan-reader
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~aiasisbot61-4chan-reader/file -o aiasisbot61-4chan-reader.md
## 概述(中文)

浏览 4chan 版块并将主题讨论提取到结构化文本文件中。当您需要从 4chan 版块(如 /a/、/vg/、/v/ 等)获取目录信息或特定线程内容(包括帖子文本和文件元数据)时使用。

## 原文

# 4chan Reader

This skill allows you to catalog and extract threads from 4chan boards into structured text.

## Workflows

### 1. View Board Catalog
To see active threads and their reply counts on a board:
```bash
python3 scripts/chan_extractor.py catalog <board>
```
Output format: `ThreadID|PostCount|TeaserText`

### 2. Extract Thread Content
To read a specific thread and optionally save it:
```bash
python3 scripts/chan_extractor.py thread <board> <thread_id> [output_root_dir] [word_limit]
```
- `output_root_dir` (optional): If provided, saves content to `<output_root_dir>/<board>_<timestamp>/<thread_id>.txt`.
- `word_limit` (optional): Limits each line of post text to the specified number of words.

## Details
- **Scripts**: Uses [chan_extractor.py](scripts/chan_extractor.py) for all operations.