x-twitter-scraper
它能做什么
这个工具可以帮你从 X(原 Twitter)获取数据,并把数据接入你的应用或工作流程中。你可以用它搜索推文、获取用户详细信息,还可以下载媒体文件。
适用场景
- ✓当你需要收集推文数据进行分析时。
- ✓当你在开发一个需要显示 X 个人资料信息的应用时。
- ✓当你想自动下载 X 上发布的媒体内容时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/x-twitter-scraper/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“搜索关于人工智能的最新 50 条推文,并保存其链接。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会连接 X API 进行搜索并收集数据。它可以借助现成的工具(比如 Apify 的 'Actors'),也可以使用编程库来简化接入过程。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
X Twitter Scraper
Use this skill when a user wants to integrate Xquik into an app, script, data pipeline, or AI agent workflow for X API and Twitter scraper tasks.
Use Cases
- Search tweets, fetch tweet details, read timelines, and download media.
- Look up users, check relationships, and export followers or following.
- Start extraction jobs for replies, reposts, quotes, likes, lists, communities, articles, and search results.
- Create account monitors and verify HMAC-signed webhook events.
- Add TypeScript, Python, Go, Java, Kotlin, C#, Ruby, PHP, CLI, or Terraform clients.
- Run hosted tweet and audience collection through Apify Actors.
- Connect agent runtimes through the Xquik MCP server.
- Install TweetClaw when the workflow belongs inside OpenClaw and needs plugin-managed approvals for X account actions.
Source Checks
Before writing code, inspect the current Xquik source material:
- REST API docs: https://docs.xquik.com/api-reference/overview
- SDK index: https://docs.xquik.com/sdks
- OpenAPI spec: https://xquik.com/openapi.json
- MCP server docs: https://docs.xquik.com/mcp/overview
- Skill repo: https://github.com/Xquik-dev/x-twitter-scraper
- TweetClaw OpenClaw plugin: https://github.com/Xquik-dev/tweetclaw
- TweetClaw npm registry metadata: https://registry.npmjs.org/@xquik%2Ftweetclaw
- X Tweet Scraper Actor: https://apify.com/xquik/x-tweet-scraper
- X Follower Scraper Actor: https://apify.com/xquik/x-follower-scraper
Do not invent endpoint names, request fields, response fields, scopes, pricing, limits, or package names. Read the relevant SDK README and API reference page first.
Implementation Flow
- Identify the workflow: search, lookup, extraction, monitor, webhook, media, write action, billing, or MCP.
- Choose the integration surface: generated SDK for application code, REST for custom clients, Apify Actors for hosted collection, MCP for agents, TweetClaw for OpenClaw plugin workflows, or webhooks for event delivery.
- Confirm authentication requirements from the docs and use environment variables for API keys.
- Use typed request and response models when an SDK exists for the user's language.
- Add retries and pagination according to the SDK or API docs.
- Show the target and usage estimate, then get explicit approval before private reads, metered extractions, draws, writes, monitors, webhooks, or other persistent work.
- Keep webhook verification server-side and compare HMAC signatures before processing events.
- Return structured data to the caller instead of scraping generated UI output.
SDK Pattern
When application code is involved, match the SDK to the user's project language:
- Inspect project files and package manifests to identify the language and framework.
- Open the SDK index, then read the matching SDK README before choosing install commands, package names, imports, or client methods.
- Prefer the official SDK for the detected language when one exists.
- Use REST only when the project language has no suitable official SDK or the user asks for a custom client.
- Keep API keys in environment variables or the project's existing secret manager.
Use project-native typed request and response models. Keep network calls in server-side code unless the SDK docs explicitly support browser use.
Extraction Pattern
Use extraction jobs for complete or large follower, following, reply, quote, repost, like, list, community, article, media, and search exports.
- Call
POST /extractions/estimatewith the intended target and filters. - Show the returned result estimate and usage estimate.
- Wait for explicit approval before creating the extraction.
- Poll the job to a terminal state, then fetch or export its results.
Do not treat an extraction-backed follower export as a free public read. Direct, bounded public pagination remains read-only.
Apify Actor Pattern
Use the Apify path when a workflow needs hosted runs, datasets, schedules, or Apify-native orchestration.
| Need | Actor | REST ID |
|---|---|---|
| Tweets, search, timelines, lists, articles, replies, quotes, threads, retweeters, or best-effort favoriters | xquik/x-tweet-scraper |
xquik~x-tweet-scraper |
| Followers, following, verified followers, list members, list subscribers, or community members | xquik/x-follower-scraper |
xquik~x-follower-scraper |
…
常见问题
使用这个工具需要 X 账号吗?
需要。要与 X API 交互并收集数据,通常需要与 X 账号关联的访问凭证。
我可以下载 X 上的视频吗?
可以。该工具支持下载 X 上发布的媒体内容,包括视频。
使用我的 API 密钥安全吗?
工具建议使用环境变量来存储 API 密钥。这是一种安全的做法,可以避免把密钥直接写在代码里而被泄露。
详情
作者的原始描述
Build GitHub Copilot workflows with Xquik X API SDKs, REST endpoints, hosted Apify Actor runs, MCP tools, TweetClaw OpenClaw plugin installs, signed webhooks, tweet search, user lookup, follower exports, media actions, and agent automation.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7483
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。