reddit-scrape
Skill1 starsChanged 6 months agoMITView on GitHub
Scrape Reddit posts and comments via the Apify connector — single post, subreddit, user, or keyword search. Returns structured data (title, body, author, upvotes, comments, images). Use for "scrape Reddit", "get this Reddit post", "Reddit comments on", "what are people saying in r/", "search Reddit", "browse Reddit".
In this repository35 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- asana-taskSkill
- briefing-prepSkill
- case-studySkill
- content-draftSkill
- content-strategySkill
- email-draftSkill
- event-promoSkill
- handoffSkill
- lab-summarySkill
- launch-strategySkill
- linkedin-scrapeSkill
- meeting-followupSkill
- member-commsSkill
- mma-brand-guidelinesSkill
- mma-org-contextSkill
- mma-pptx-builderSkill
- mma-writing-styleSkill
- office-editingSkill
- press-releaseSkill
- research-briefSkill
- researchSkill
- search-and-scrapeSkill
- sharepoint-findSkill
- slack-summarySkill
- zapier-workflow-builderSkill
- commitSkill
- content-shippedSkill
- daily-briefingSkill
- endSkill
- marvinSkill
- mavenSkill
- skill-creatorSkill
- template-skillSkill
- updateSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Default. Fast (~6s), 94% success, returns upvotes, images, per-comment upvotes.
- Very specific: line 30
Search-only: searchSort (relevance|hot|top|new|comments), searchTime (all|hour|day|week|month|year), withinCommunity, includeNSFW, fastMode.
- Very specific: line 62
Only if harshmaur fails. Slower (~16s), $0.0038/result, 88%, no upvotes/images.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reddit Scraping (Apify)
Setup (skip if Apify is already connected)
Requires the Apify connector (Claude Desktop) with your org's shared Apify token. If a scrape returns an auth or connection error, it isn't set up yet. Tell the user to open the setup guide and follow it: your org's Apify onboarding doc ({{APIFY_SETUP_DOC_URL}}) ({{APIFY_SETUP_DOC_PATH}}).
Tool names: Claude Desktop → Apify:call-actor, Apify:get-dataset-items. Claude Code → deferred; load with ToolSearch("apify call actor dataset") first, then mcp__claude_ai_Apify__* (or mcp__apify__*).
Two-step pattern (every scrape)
call-actorwith actor + input JSON. SetwaitSecs: 45(the max; it returns as soon as the run finishes, ~6–16s, not a fixed delay). Response gives the dataset id (defaultDatasetId/storages.datasets.default.id), not the rows.get-dataset-itemswith that id. Always passfields=(rows carry 20–30 columns including HTML bodies).
Primary actor: harshmaur/reddit-scraper
Default. Fast (~6s), 94% success, returns upvotes, images, per-comment upvotes. Cost: $0.02/run + $0.0018/result.
Inputs:
startUrls— array of OBJECTS:[{"url": "..."}](bare strings fail). Post, subreddit, user, or search-page URLs.searchTerms— array of strings; use instead ofstartUrlsfor keyword search.crawlCommentsPerPost(bool, defaultfalse) — scrape comment bodies.maxCommentsPerPost(int, default 10) — cap; applies only when crawling comments. Each comment is a billed result, so keep it modest.maxPostsCount(int, default 10, max 900) —1for a single post.proxy—{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}(most reliable for Reddit).- Search-only:
searchSort(relevance|hot|top|new|comments),searchTime(all|hour|day|week|month|year),withinCommunity,includeNSFW,fastMode.
Post only:
{"startUrls": [{"url": "<POST_URL>"}], "crawlCommentsPerPost": false, "maxPostsCount": 1, "proxy": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}}commentsCount is still populated; you just don't get bodies.
Post + comments:
{"startUrls": [{"url": "<POST_URL>"}], "crawlCommentsPerPost": true, "maxCommentsPerPost": 50, "maxPostsCount": 1, "proxy": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}}Subreddit top this week:
{"startUrls": [{"url": "https://www.reddit.com/r/espresso/"}], "maxPostsCount": 25, "searchSort": "top", "searchTime": "week", "crawlCommentsPerPost": false, "proxy": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}}Keyword search: swap startUrls for searchTerms, e.g. {"searchTerms": ["espresso machine reviews"], "maxPostsCount": 25, "searchSort": "top", "searchTime": "month", "proxy": {...}}.
Output rows have dataType "post" or "comment":
- Post:
dataType, title, body, authorName, upVotes, commentsCount, images, contentUrl, postUrl, createdAt, flair, postType, communityName, id - Comment:
dataType, body, authorName, commentUpVotes, commentCreatedAt, parentId, url
Retrieval:
get-dataset-items datasetId: <id>
fields: "dataType,title,body,authorName,upVotes,commentsCount,images" # post-only
fields: "dataType,title,body,authorName,upVotes,commentsCount,commentUpVotes,parentId" # with commentsFallback: trudax/reddit-scraper-lite
Only if harshmaur fails. Slower (~16s), $0.0038/result, 88%, no upvotes/images. Includes comments by default — for post-only set skipComments: true (not maxComments: 0).
{"startUrls": [{"url": "<POST_URL>"}], "skipComments": true, "skipCommunity": true, "maxPostCount": 1, "maxItems": 1, "proxy": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}}Output: dataType, title, body, username, communityName, createdAt, url, parentId. No upVotes.
Gotchas
startUrlsentries must be objects{"url": "..."}. Most common error.- Comment defaults differ: harshmaur OFF, trudax ON. Set explicitly; default to post-only.
get-dataset-itemsmay hit "No approval received"; the run still succeeded, so approve or re-issue.- Always project
fields=. - Cost scales per comment: post-only ≈ $0.022; 50 comments ≈ $0.11; 500 ≈ $0.92.
Defaults
harshmaur, post-only. Scrape comments only when asked. trudax only on harshmaur failure.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

