Twitter Mention Tracker
Twitter mention tracker

Search and scrape Twitter/X posts using Apify. Use when you need to find tweets, track brand mentions, monitor competitors on Twitter, or analyze Twitter discussions.
--- name: twitter-mention-tracker description: > Search and scrape Twitter/X posts using Apify. Use when you need to find tweets, track brand mentions, monitor competitors on Twitter, or analyze Twitter discussions. Uses Twitter native search syntax (since:/until:) for reliable date filtering. --- # Twitter Mention Tracker Search Twitter/X posts using the Apify `apidojo/tweet-scraper` actor. ## Quick Start Requires `APIFY_API_TOKEN` env var (or `--token` flag). ```bash # Search with date range (recommended -- uses Twitter native since:/until: operators)
Overview
Search Twitter/X posts using the Apify apidojo/tweet-scraper actor.
Manual install (npx, ZIP)
npx skills add gooseworks-ai/goose-skills --skill twitter-mention-tracker -g -a claude-codemkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/gooseworks-ai/goose-skills/tar.gz/615c685f34f8 \
| tar -xz -C ~/.claude/skills --strip-components=4 goose-skills-615c685f34f8/skills/monitoring/capabilities/twitter-mention-trackerNew-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/095925a5102e07a4c085/twitter-mention-tracker.zip" -OutFile "$env:TEMP\twitter-mention-tracker.zip"; Expand-Archive "$env:TEMP\twitter-mention-tracker.zip" -DestinationPath "$HOME\.claude\skills" -ForceConnects with Agent Alley MCP · agentalley.io/mcp
Files included
SKILL.md3.1 KBskill.meta.json271 Bscripts/1 file · 7.9 KB
Read the files here
Show the full text102 lines
Twitter Mention Tracker
Search Twitter/X posts using the Apify apidojo/tweet-scraper actor.
Quick Start
Requires APIFY_API_TOKEN env var (or --token flag).
# Search with date range (recommended -- uses Twitter native since:/until: operators)
python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
--query "YourCompany" --since 2026-02-15 --until 2026-02-23
# Quick summary of recent mentions
python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
--query "@yourhandle" --max-tweets 20 --output summary
# Search without date filtering
python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
--query "AI content marketing" --max-tweets 50
Date Filtering
Important: The apidojo/tweet-scraper actor's built-in date parameters are unreliable.
This script embeds since:YYYY-MM-DD and until:YYYY-MM-DD directly into the search query
string, using Twitter's native advanced search syntax. This ensures date filtering works
correctly server-side.
How the Script Works
- Builds a search term with the query quoted and date operators appended
- Calls the Apify
apidojo/tweet-scraperactor via REST API - Polls until the run completes, then fetches the dataset
- Deduplicates by tweet ID/URL
- Applies optional keyword filtering (client-side)
- Sorts by likes (descending) and outputs JSON or summary
CLI Reference
| Flag | Default | Description |
|---|---|---|
--query |
required | Search query (quoted in Twitter search) |
--since |
none | Start date YYYY-MM-DD (inclusive) |
--until |
none | End date YYYY-MM-DD (exclusive) |
--max-tweets |
50 | Max tweets to scrape |
--keywords |
none | Additional filter keywords (comma-separated, OR logic) |
--output |
json | Output format: json or summary |
--token |
env var | Apify token (prefer APIFY_API_TOKEN env var) |
--timeout |
300 | Max seconds to wait for the Apify run |
Direct API Usage
{
"searchTerms": ["\"YourCompany\" since:2026-02-15 until:2026-02-22"],
"maxTweets": 50,
"searchMode": "live"
}
Output Format
Tweets are returned as JSON array sorted by likes. Each tweet has:
{
"id": "...",
"text": "Tweet text...",
"fullText": "Full tweet text...",
"likeCount": 42,
"retweetCount": 5,
"replyCount": 3,
"viewCount": 1200,
"createdAt": "2026-02-18T12:00:00.000Z",
"author": {"userName": "handle", "name": "Display Name", ...},
"twitterUrl": "https://twitter.com/..."
}
Common Workflows
Competitor Monitoring
python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
--query "CompetitorName" --since 2026-02-15 --until 2026-02-23 --output summary
Brand Mention Tracking
python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
--query "@YourHandle OR \"YourBrand\"" --max-tweets 100
| 1 | |
| 2 | name twitter-mention-tracker |
| 3 | description > |
| 4 | Search and scrape Twitter/X posts using Apify. Use when you need to find tweets, |
| 5 | track brand mentions, monitor competitors on Twitter, or analyze Twitter discussions. |
| 6 | Uses Twitter native search syntax (since:/until:) for reliable date filtering. |
| 7 | |
| 8 | |
| 9 | # Twitter Mention Tracker |
| 10 | |
| 11 | Search Twitter/X posts using the Apify `apidojo/tweet-scraper` actor. |
| 12 | |
| 13 | ## Quick Start |
| 14 | |
| 15 | Requires `APIFY_API_TOKEN` env var (or `--token` flag). |
| 16 | |
| 17 | |
| 18 | # Search with date range (recommended -- uses Twitter native since:/until: operators) |
| 19 | python3 skills/twitter-mention-tracker/scripts/search_twitter.py \ |
| 20 | --query "YourCompany" --since 2026-02-15 --until 2026-02-23 |
| 21 | |
| 22 | # Quick summary of recent mentions |
| 23 | python3 skills/twitter-mention-tracker/scripts/search_twitter.py \ |
| 24 | --query "@yourhandle" --max-tweets 20 --output summary |
| 25 | |
| 26 | # Search without date filtering |
| 27 | python3 skills/twitter-mention-tracker/scripts/search_twitter.py \ |
| 28 | --query "AI content marketing" --max-tweets 50 |
| 29 | |
| 30 | |
| 31 | ## Date Filtering |
| 32 | |
| 33 | **Important:** The `apidojo/tweet-scraper` actor's built-in date parameters are unreliable. |
| 34 | This script embeds `since:YYYY-MM-DD` and `until:YYYY-MM-DD` directly into the search query |
| 35 | string, using Twitter's native advanced search syntax. This ensures date filtering works |
| 36 | correctly server-side. |
| 37 | |
| 38 | ## How the Script Works |
| 39 | |
| 40 | Builds a search term with the query quoted and date operators appended |
| 41 | Calls the Apify `apidojo/tweet-scraper` actor via REST API |
| 42 | Polls until the run completes, then fetches the dataset |
| 43 | Deduplicates by tweet ID/URL |
| 44 | Applies optional keyword filtering (client-side) |
| 45 | Sorts by likes (descending) and outputs JSON or summary |
| 46 | |
| 47 | ## CLI Reference |
| 48 | |
| 49 | | Flag | Default | Description | |
| 50 | |------|---------|-------------| |
| 51 | | `--query` | *required* | Search query (quoted in Twitter search) | |
| 52 | | `--since` | none | Start date YYYY-MM-DD (inclusive) | |
| 53 | | `--until` | none | End date YYYY-MM-DD (exclusive) | |
| 54 | | `--max-tweets` | 50 | Max tweets to scrape | |
| 55 | | `--keywords` | none | Additional filter keywords (comma-separated, OR logic) | |
| 56 | | `--output` | json | Output format: `json` or `summary` | |
| 57 | | `--token` | env var | Apify token (prefer `APIFY_API_TOKEN` env var) | |
| 58 | | `--timeout` | 300 | Max seconds to wait for the Apify run | |
| 59 | |
| 60 | ## Direct API Usage |
| 61 | |
| 62 | |
| 63 | { |
| 64 | "searchTerms": ["\"YourCompany\" since:2026-02-15 until:2026-02-22"], |
| 65 | "maxTweets": 50, |
| 66 | "searchMode": "live" |
| 67 | } |
| 68 | |
| 69 | |
| 70 | ## Output Format |
| 71 | |
| 72 | Tweets are returned as JSON array sorted by likes. Each tweet has: |
| 73 | |
| 74 | |
| 75 | { |
| 76 | "id": "...", |
| 77 | "text": "Tweet text...", |
| 78 | "fullText": "Full tweet text...", |
| 79 | "likeCount": 42, |
| 80 | "retweetCount": 5, |
| 81 | "replyCount": 3, |
| 82 | "viewCount": 1200, |
| 83 | "createdAt": "2026-02-18T12:00:00.000Z", |
| 84 | "author": {"userName": "handle", "name": "Display Name", ...}, |
| 85 | "twitterUrl": "https://twitter.com/..." |
| 86 | } |
| 87 | |
| 88 | |
| 89 | ## Common Workflows |
| 90 | |
| 91 | ### Competitor Monitoring |
| 92 | |
| 93 | python3 skills/twitter-mention-tracker/scripts/search_twitter.py \ |
| 94 | --query "CompetitorName" --since 2026-02-15 --until 2026-02-23 --output summary |
| 95 | |
| 96 | |
| 97 | ### Brand Mention Tracking |
| 98 | |
| 99 | python3 skills/twitter-mention-tracker/scripts/search_twitter.py \ |
| 100 | --query "@YourHandle OR \"YourBrand\"" --max-tweets 100 |
| 101 | |
| 102 |
Details
- Updated
- Sep 21, 2026
- License
- MIT
- Stars on the repo
- ★ 1,220
- Checked
- Source
- gooseworks-ai/goose-skills ↗
- Creator
- gooseworks-ai · 205 listings
Similar skills
See all →
SkillLast 30 Days Research
SkillSocial Platform Scraper
SkillWeChat Article Publisher
SkillTwitter Content Search
SkillYouTube Script Writer
SkillInternet Research RouterMore from gooseworks-ai
SkillAd Angle Miner
SkillAd Campaign Analyzer
SkillLead Quality Analyzer
SkillMessage Match Auditor
SkillAI Search Visibility
SkillAmazon Product Search