跳到正文
Skillpedia
部署与云(DevOps)40k · #7483

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/x-twitter-scraper/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

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

  1. Identify the workflow: search, lookup, extraction, monitor, webhook, media, write action, billing, or MCP.
  2. 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.
  3. Confirm authentication requirements from the docs and use environment variables for API keys.
  4. Use typed request and response models when an SDK exists for the user's language.
  5. Add retries and pagination according to the SDK or API docs.
  6. Show the target and usage estimate, then get explicit approval before private reads, metered extractions, draws, writes, monitors, webhooks, or other persistent work.
  7. Keep webhook verification server-side and compare HMAC signatures before processing events.
  8. 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.

  1. Call POST /extractions/estimate with the intended target and filters.
  2. Show the returned result estimate and usage estimate.
  3. Wait for explicit approval before creating the extraction.
  4. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能