A production-focused OpenClaw Twitter/X scraper skill to run lead collection with Apify actors: collect followers/following and optionally enrich with emails.
This skill is built for teams that need repeatable Twitter scraper automation and Twitter lead generation without manually wiring actor payloads each time.
- Actor Links
- What This Skill Does
- Who This Skill Is For
- Repository Structure
- Why This Beats Manual Scraping
- Twitter Scraper API Workflow
- Use-Case Snippets
- Requirements
- Authentication (Apify)
- Quick Start
- Output Format
- Install as OpenClaw Skill
- ClawHub Publishing Notes
- SEO Keywords
- License
- Followers / following actor: https://console.apify.com/actors/bIYXeMcKISYGnHhBG
- Email enrichment actor: https://console.apify.com/actors/mSaHt2tt3Z7Fcwf0o
- Extracts username from
x.com,twitter.com, or@handle - Builds actor-ready payloads for follower/following collection
- Runs follower actor and normalizes output rows
- Optionally runs email actor and merges email/name data
- Returns JSON with metrics and outreach-ready rows
- Growth teams building X audience lead lists
- Founders running outbound campaigns from Twitter/X
- Agencies that need repeatable social graph collection
- Operators who want Apify actor automation without custom glue code
| Path | Purpose |
|---|---|
SKILL.md |
Trigger rules, workflow, execution guidance |
agents/openai.yaml |
OpenClaw UI metadata |
scripts/apify_twitter_actors.py |
CLI runner for followers + optional email enrichment |
references/actor-contracts.md |
Actor input/output contracts |
references/troubleshooting.md |
Common failures and fixes |
Manual Twitter/X prospecting usually fails at scale because extraction, filtering, enrichment, and formatting happen in separate steps. That creates inconsistency and slows outbound teams.
This skill improves the process by keeping the pipeline deterministic:
- one input target format (
x.com,twitter.com, or@handle) - one runner for followers/following/both
- one optional enrichment branch (email actor)
- one normalized output contract for downstream systems
For growth teams and agencies, this means faster campaign setup, fewer formatting errors, and better reuse across client niches.
Teams often look for a Twitter scraper API workflow that is simple to run and easy to maintain. This skill follows a clear execution pattern: parse profile target, run followers actor, optionally run email enrichment, and return normalized output. The flow is stable enough for repeated campaign usage while staying flexible through input flags like collect-type, limit, and include-emails.
From an operations perspective, the value is not only in collection speed. The bigger win is predictable structure. Because the output schema stays consistent across runs, it is straightforward to pass results into n8n, Google Sheets, CSV exports, or CRM staging steps without rewriting transformation logic every time.
Collect followers of a target founder account, enrich with emails only when needed, and push final rows to your CRM staging sheet.
Run multiple profile targets with the same script contract, standardize output schema, and hand off to SDRs without manual cleanup.
Run follower-only collection first (--include-emails off), evaluate quality, then rerun top segments with enrichment enabled.
- Python 3.10+
requests- Apify API token
Install dependencies:
pip install -r requirements.txtTwo supported ways:
export APIFY_TOKEN='apify_api_xxx'--apify-token 'apify_api_xxx'If both are provided, --apify-token wins.
python3 scripts/apify_twitter_actors.py parse-username --target 'https://x.com/elonmusk'APIFY_TOKEN='apify_api_xxx' \
python3 scripts/apify_twitter_actors.py run-followers \
--target 'https://x.com/elonmusk' \
--collect-type followers \
--limit 1000APIFY_TOKEN='apify_api_xxx' \
python3 scripts/apify_twitter_actors.py run-pipeline \
--target 'https://x.com/elonmusk' \
--collect-type followers \
--limit 1000 \
--include-emailsparse-usernamerun-followersrun-pipeline
Supported collect types:
followersfollowingboth
run-pipeline returns:
targetUsernamecollectTypeincludeEmailstotalCollectedemailsFoundrows[]withusername,name,email,sourceType,collectedAt
This is ready for n8n, CSV export, Google Sheets, or CRM staging.
If your OpenClaw/skills runtime supports GitHub install:
npx skills add hundevmode/twitter-x-apify-actors-openclaw-skill --skill twitter-x-apify-actorsList skills in repo:
npx skills add hundevmode/twitter-x-apify-actors-openclaw-skill --listBefore publishing to ClawHub:
- Confirm
SKILL.mdfrontmatter is correct - Ensure
agents/openai.yamlmetadata is present - Run a smoke test with valid
APIFY_TOKEN - Keep actor IDs documented and configurable
Twitter scraper, Twitter/X scraper, X followers scraper, social media scraper, Apify actors, OpenClaw skill, email enrichment, Twitter lead generation, outbound automation, growth automation.
MIT (free for commercial and private use).