Skip to content
Agentmart
Submit a tool

subreddit-search

Scrape top Reddit posts from a subreddit in Chrome, optionally filtered by a search query, and return title, URL, upvotes, comments, and body text.

Skill by prakhar1114

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/prakhar1114-subreddit-search

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Scrape top Reddit posts from a subreddit in Chrome, optionally filtered by a search query, and return title, URL, upvotes, comments, and body text.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/subreddit-search

What's inside

Skill name
subreddit-search
Description
Scrape top Reddit posts from a subreddit in Chrome, optionally filtered by a search query, and return title, URL, upvotes, comments, and body text.
License
MIT
Instructions
67 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (6)

  • SKILL.md
  • inputs.example.json · inputs/
  • inputs.template.json · inputs/
  • fallback_plan.md · references/
  • run.sh
  • run.py · scripts/

SKILL.md (first lines)

# Subreddit Search

Scrapes a Reddit feed in the browser, collects post URLs, opens each post, and returns structured post data.

## Inputs
- `target_subreddit` (required, string): Subreddit name, with or without `r/`, such as `SaaS` or `r/LocalLLaMA`.
- `query` (optional, string): Search query. Leave blank to collect general top posts.
- `time_frame` (optional, enum): Exactly one of `hour`, `day`, `week`, `month`, `year`, `all`. Default is `month`.
- `post_count` (optional, integer): Number of posts to extract. Default is `10`.

## Run
Run via the executable bash script:

```bash
./run.sh [path/to/inputs.json]
```

Python runtime contract:
- `run.sh` uses the first available interpreter in this order: skill `.venv/bin/python`, workflow `.venv/bin/python`, then required `$AI_MIME_PYTHON_PATH`.
- This skill has no third-party Python package requirements, so it does not include `requirements.txt`.
- `$AI_MIME_BROWSER_HARNESS_BIN` must be set by AI Mime. The runner uses it to connect to Chrome and drive Reddit.
- Runtime does not create or repair a virtual environment.

## Outputs
The skill prints and logs:

```json
{
  "results": [
    {
      "title": "...",
      "url": "...",
      "upvotes": 0,
      "comments": 0,
      "body_text": "..."
    }
  ]
}
```

## Progress log format
The script outputs JSON log events on `stderr`:

```json
{"event":"step_start","id":"prepare_inputs","title":"Prepare Reddit scrape inputs"}
{"event":"step_done","id":"prepare_inputs","outputs":{"target_url":"...","post_count":10},"summary":"Prepared Reddit URL and limits"}
{"event":"step_start","id":"scrape_reddit","title":"Scrape Reddit posts in browser"}
{"event":"step_done","id":"scrape_reddit","outputs":{"result_count":10},"summary":"Extracted 10 posts"}
{"event":"workflow_done","outputs":{"results":[]}}
```

On failure, it emits:

```json
{"event":"step_failed","id":"scrape_reddit","error":"...","recoverable":false}
```

## Fallback
If `run.sh` fails, read [references/fallback_plan.md](references/fallback_plan.md). It contains the manual/browser fallback steps, target URL rules, and Reddit selectors used by the runner.

## ask_llm decision points
None.

## References
- [references/fallback_plan.md](references/fallback_plan.md): Manual and UI-agent fallback flow for collecting links and extracting post fields from Reddit.

From prakhar1114/ai_mime_marketplace, MIT.

More from prakhar1114/ai_mime_marketplace

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jun 20, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from prakhar1114

Cite this page

subreddit-search skill. Agent Mart. https://agentmart.dev/skills/prakhar1114-subreddit-search (last updated 2026-10-24)