Search Reddit for posts on any topic using the Apify trudax/reddit-scraper-lite actor and produce a structured summary of community sentiment.
Before running, verify:
pip3 install apify-clientIf either is missing, refer the user to references/apify-setup.md in this skill's directory for setup instructions.
The search topic comes from $ARGUMENTS. If $ARGUMENTS is empty or missing, ask the user what topic they want to search Reddit for.
Execute the search script with the user's topic:
python3 ~/.agents/skills/reddit-explore/scripts/reddit_search.py --query "$ARGUMENTS" --max-items 30
The script outputs JSON results to stdout. If it fails:
references/apify-setup.md)pip3 install apify-clientRead the JSON output. Each item contains:
title - Post titlecommunityName - Subreddit nameupVotes - ScorenumberOfComments - Comment counturl - Link to the postbody - Post text contentcreatedAt - When it was postedPresent findings in this format:
Brief 2-3 sentence summary of what Reddit thinks about the topic.
Positives / Pros:
Negatives / Cons:
Neutral / Informational:
List 3-5 of the most relevant/upvoted posts with:
A concise takeaway of the community consensus.
共 1 个版本