leamsigc/shortsgenerator/reddit-research-scrape
Claude Code and agent skill by leamsigc/shortsgenerator
- community
Checking that the SKILL.md file is still in the repository.
Scrape state — runs the Reddit JSON API scraper for correct data (upvotes, comment counts, full comment trees, exact selftext), then generates a viral video script per post from the post content + top comments via the backend API. Saves structured markdown files + index.json.
Install
npx vskill@latest install leamsigc/shortsgenerator/reddit-research-scrapeSKILL.md
Reddit Research — Scrape State (v3)
Scrapes top posts from a subreddit with correct upvotes/comment counts using Reddit's JSON API, then generates a viral video script per post.
Before running
Ensure the Flask backend is running on port 8080 (for script generation): curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/api/models
Run
Defaults: limit=10, sort=hot, lang=es (Spanish).
What the script does
- Fetches the subreddit listing JSON:
https://www.reddit.com/r/<sub>/<sort>.json?limit=<n> - For each post, fetches
<permalink>.jsonfor correct data:
- Accurate upvotes (not the HTML bug showing
1) - Accurate comment counts, full comment trees with correct scores
- Exact
selftext, video URL (media.reddit_video.fallback_url), linked URL
- Extracts the top 10 comments (depth ≤ 2)
- Generates a viral video script via the backend API (title + content + top comments), ~30-60s
- Writes
.reddit-research/<YYYY-MM-DD_HHMMSS>/<post-slug>.md(dated session) with:
# Title, author, upvotes, comments, source, scraped date## Content,## Viral Video Script (Spanish),## Videos,## Sourced Videos(placeholder),## Top Comments
- Writes
index.json(posts[]with index/title/file/url/upvotes/comments)
Manual fallback (Chrome DevTools CLI)
If the JSON API is blocked, scrape the listing page manually:
chrome-devtools navigate_page --url "https://www.reddit.com/r/<subreddit>/<sort>/"— scroll to load more posts- Extract post URLs from
a[href*="/comments/"] - Fetch each post's data via
fetch("<post_url>.json")inevaluate_script - Write the same markdown + index.json structure
Key points
| Issue | HTML scrape | JSON API | |
|---|---|---|---|
| Upvotes | Often 1 | Correct count | |
| Comment count | Missing | Correct count | |
| Comments | Author/score missing | All fields present |
Errors
If a post's JSON API errors (deleted/private/NSFW), log it, skip to the next post, and note the failure in index.json.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/reddit-research-scrape/SKILL.md
Popularity
- Repository stars
- 348
- Repository forks
- 75
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leamsigc/shortsgenerator/reddit-research-scrape)