Comment Scraper
v0.1.3Read your Comment Scraper exports of Reddit and Hacker News threads.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_threads List exported threads
Lists the Reddit and Hacker News threads the user exported with Comment Scraper, newest first, with comment counts. Call this first to get a thread id.
| Parameter | Type | Description |
|---|---|---|
query | string | Only threads whose title contains this text |
read_thread Read a thread
Returns a thread's post and comments as numbered Markdown ([c12] reply to [c3] (score 41, 3d ago)). Long threads come in pages: call again with the offset given at the end. Cite comments by their [cN] number.
| Parameter | Type | Description |
|---|---|---|
thread * | string | Thread id from list_threads, or words from its title |
limit | integer | Comments per page, default 200 |
min_score | integer | Only comments with at least this score (hidden scores are left out) |
offset | integer | Skip this many comments (for the next page) |
search_comments Search comments
Finds comments containing all of the given words across every exported thread (or one thread). Returns each match with its thread, [cN] number and score.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words to look for; a comment must contain all of them (case-insensitive) |
limit | integer | Maximum matches, default 30 |
thread | string | Limit to one thread: id or words from its title |
get_comment Get a comment in context
Returns one comment by its [cN] number with the comments it replies to (up to the top) and its direct replies.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Comment number, e.g. "c12" or "12" |
thread * | string | Thread id from list_threads, or words from its title |