Xtwitter Scraper
managedcode/dotnet-skills
Use XTwitterScraper when a .NET application needs typed access to Xquik's X automation REST API for tweet search, user lookup, posting workflows, extraction jobs, monitors, webhooks, or giveaway…
Skill for reading and writing Twitter/X data with Python + UV, with zero third-party dependencies (pure standard library), by directly passing the authtoken + ct0 cookies for authentication.
$ npx skills add OpenMinis/MinisSkills --skill twitter-x-hub -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OpenMinis/MinisSkills twitter-x-hub --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/OpenMinis/MinisSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/twitter-x-hub .claude/skills/twitter-x-hub && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "twitter-x-hub" agent skill from https://github.com/OpenMinis/MinisSkills/tree/main/twitter-x-hub into .claude/skills/twitter-x-hub/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "twitter-x-hub", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/OpenMinis/MinisSkills/tree/main/twitter-x-hubType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add OpenMinis/MinisSkills --skill twitter-x-hub -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OpenMinis/MinisSkills twitter-x-hub --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenMinis/MinisSkills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/twitter-x-hub .agents/skills/twitter-x-hub && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "twitter-x-hub" agent skill from https://github.com/OpenMinis/MinisSkills/tree/main/twitter-x-hub into .agents/skills/twitter-x-hub/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "twitter-x-hub", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenMinis/MinisSkills --skill twitter-x-hub -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OpenMinis/MinisSkills twitter-x-hub --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenMinis/MinisSkills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/twitter-x-hub .cursor/skills/twitter-x-hub && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "twitter-x-hub" agent skill from https://github.com/OpenMinis/MinisSkills/tree/main/twitter-x-hub into .cursor/skills/twitter-x-hub/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "twitter-x-hub", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/OpenMinis/MinisSkills.git --path twitter-x-hub--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add OpenMinis/MinisSkills --skill twitter-x-hub -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OpenMinis/MinisSkills twitter-x-hub --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenMinis/MinisSkills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/twitter-x-hub .gemini/skills/twitter-x-hub && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "twitter-x-hub" agent skill from https://github.com/OpenMinis/MinisSkills/tree/main/twitter-x-hub into .gemini/skills/twitter-x-hub/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "twitter-x-hub", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install OpenMinis/MinisSkills twitter-x-hubInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add OpenMinis/MinisSkills --skill twitter-x-hub -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/OpenMinis/MinisSkills.git skills-src && mkdir -p .github/skills && cp -r skills-src/twitter-x-hub .github/skills/twitter-x-hub && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "twitter-x-hub" agent skill from https://github.com/OpenMinis/MinisSkills/tree/main/twitter-x-hub into .github/skills/twitter-x-hub/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "twitter-x-hub", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenMinis/MinisSkills --skill twitter-x-hub -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install OpenMinis/MinisSkills twitter-x-hub --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenMinis/MinisSkills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/twitter-x-hub .opencode/skills/twitter-x-hub && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "twitter-x-hub" agent skill from https://github.com/OpenMinis/MinisSkills/tree/main/twitter-x-hub into .opencode/skills/twitter-x-hub/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "twitter-x-hub", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
twitter-x-hubSkill for reading and writing Twitter/X data with Python + UV, with zero third-party dependencies (pure standard library), by directly passing the authtoken + ct0 cookies for authentication.
Twitter X Hub is an agent skill from OpenMinis/MinisSkills. Skill for reading and writing Twitter/X data with Python + UV, with zero third-party dependencies (pure standard library), by directly passing the authtoken + ct0 cookies for authentication. In the Minis environment, cookies can be retrieved automatically with the browseruse tool by navigating to x.com and then using the getcookies action, with no manual copying required. Supports scraping the home timeline, following list, bookmarks (including bookmark folders), search, user profiles, user tweets, likes, tweet…
Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts (for example `scripts/__init__.py`, `scripts/cli.py` and `scripts/client.py`).
It sits in Backend & APIs, covering Social media posts, Browser automation and Web scraping. It works with X (Twitter), Python and GraphQL. The repository describes itself as: Skills collection for Minis. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ae8c5db. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 5 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
uvpipFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
x.comAlso links to:
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
TWITTER_AUTH_TOKENCOOKIE_AUTH_TOKENFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Twitter X Hub loads about 2.9k tokens when it runs. Until then it costs about 249 tokens; SKILL.md has 803 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from OpenMinis/MinisSkills at commit ae8c5db, republished under its MIT licence (© OpenMinis). 803 words, ~2,917 tokens.
.claude/skills/twitter-x-hub/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.Modified from: public-clis/twitter-cli (formerly jackwener/twitter-cli) This skill simplifies the original repository as follows: it removes the
browser-cookie3/rich/click/PyYAML/curl_cffi/xclienttransaction/beautifulsoup4dependencies and replaces them with a pure standard library implementation; authentication now uses directly supplied cookies instead of automatic browser extraction; Twitter Article rendering and image upload functionality have been removed.
/var/minis/skills/twitter-x-hub/
├── SKILL.md
├── pyproject.toml # UV project configuration (zero third-party dependencies)
└── scripts/
├── __init__.py
├── models.py # Data models (Tweet, Author, Metrics, UserProfile, BookmarkFolder)
├── parser.py # GraphQL response parsing (split from client.py, synced from upstream v0.8.6)
├── client.py # GraphQL client (core logic)
└── cli.py # Command-line entry point (argparse)The Twitter/X internal GraphQL API uses two cookies for authentication:
| Cookie | Description |
|---|---|
auth_token | User login credential (OAuth Session Token) |
ct0 | CSRF Token, also used as the X-Csrf-Token request header |
browser_use tool (recommended, preferred in the Minis environment)In Minis, you can use the browser_use tool to navigate directly to x.com, then use the get_cookies action to read cookies,
with no manual copying required. After retrieval, store them in environment variables immediately to avoid exposing plaintext values in the conversation context.
Steps:
browser_use navigate to open https://x.com and confirm you are logged in.browser_use get_cookies to retrieve all cookies./var/minis/offloads/env_cookies_xxx.sh.. /var/minis/offloads/env_cookies_xxx.sh
export TWITTER_AUTH_TOKEN="$COOKIE_AUTH_TOKEN"
export TWITTER_CT0="$COOKIE_CT0"Copy auth_token and ct0 from browser DevTools -> Application -> Cookies -> https://x.com,
then store them in Minis environment variables (Settings -> Environments): TWITTER_AUTH_TOKEN + TWITTER_CT0
TWITTER_AUTH_TOKEN + TWITTER_CT0 (recommended)--auth-token <value> --ct0 <value>TwitterClient(auth_token=..., ct0=...)# Confirm UV is available
which uv || pip install uv
# Enter the skill directory
cd /var/minis/skills/twitter-x-hub# Scrape the home For-You timeline (20 items by default)
uv run python -m scripts.cli feed
# Scrape the Following timeline, 30 items, JSON output
uv run python -m scripts.cli feed --type following --max 30 --json
# Search tweets (Top/Latest/Photos/Videos)
uv run python -m scripts.cli search "Claude Code" --tab Latest --max 20
# Bookmarks
uv run python -m scripts.cli bookmarks --max 50
# Bookmark folder list (new)
uv run python -m scripts.cli bookmark-folders
# User profile
uv run python -m scripts.cli user elonmusk
# User tweets
uv run python -m scripts.cli user-posts elonmusk --max 20
# User likes
uv run python -m scripts.cli user-likes elonmusk --max 20
# Tweet details (including reply thread)
uv run python -m scripts.cli tweet 1234567890
# Quickly retrieve a single tweet (new, faster than the tweet command)
uv run python -m scripts.cli tweet-by-id 1234567890
# List timeline
uv run python -m scripts.cli list 1539453138322673664
# Followers / following lists (first use the user command to get user_id)
uv run python -m scripts.cli followers <user_id> --max 50
uv run python -m scripts.cli following <user_id> --max 50
# Post a tweet / reply
uv run python -m scripts.cli post "Hello from twitter-x-hub!"
uv run python -m scripts.cli post "reply text" --reply-to 1234567890
# Like / retweet / bookmark
uv run python -m scripts.cli like 1234567890
uv run python -m scripts.cli retweet 1234567890
uv run python -m scripts.cli bookmark 1234567890export TWITTER_AUTH_TOKEN="xxxx"
export TWITTER_CT0="yyyy"
uv run python -m scripts.cli feed --max 30 --jsonimport os, json, dataclasses
from scripts.client import TwitterClient
client = TwitterClient(
auth_token=os.environ["TWITTER_AUTH_TOKEN"],
ct0=os.environ["TWITTER_CT0"],
)
# Scrape the home timeline
tweets = client.fetch_home_timeline(count=20)
for t in tweets:
print(f"@{t.author.screen_name}: {t.text[:80]}")
print(f" ❤️ {t.metrics.likes} 🔁 {t.metrics.retweets} 👁 {t.metrics.views} 🔖 {t.metrics.bookmarks}")
# Search (Latest tab)
results = client.fetch_search("AI agent", count=10, product="Latest")
# Single tweet (quick, no replies)
tweet = client.fetch_tweet_by_id("1234567890")
# Bookmark folders
folders = client.fetch_bookmark_folders()
# User profile
user = client.fetch_user("elonmusk")
print(user.id, user.followers_count)
# JSON serialization
data = [dataclasses.asdict(t) for t in tweets]
print(json.dumps(data, ensure_ascii=False, indent=2))Uses browser cookies (auth_token + ct0) plus a hard-coded public Bearer Token
to impersonate a Chrome browser request to Twitter's internal GraphQL API.
1. In-memory cache (fastest)
2. Hard-coded FALLBACK_QUERY_IDS (constant fallback)
→ If 404, the queryId has expired; proceed to the next level
3. Fetch the latest queryId from github.com/fa0311/twitter-openapi
→ If it is still unavailable, scan the x.com JS Bundle and extract it with a regular expressionFalse in the features dictionary are not sent, avoiding overly long URLs (414 errors).cursor; pages are fetched automatically until the count limit is reached.parser.py was split out from client.py and includes independent functions such as parse_tweet_result, parse_timeline_response,
and parse_user_result, making unit testing and reuse easier.| Subcommand | Description | Key Parameters |
|---|---|---|
feed | Home timeline | --type for-you|following, --max, --json |
bookmarks | Bookmarks | --max, --json |
bookmark-folders | Bookmark folder list ⭐ New | --json |
search | Search | query, --tab Top|Latest|Photos|Videos, --max, --json |
user | User profile | screen_name, --json |
user-posts | User tweets | screen_name, --max, --json |
user-likes | User likes | screen_name, --max, --json |
tweet | Tweet details + replies | tweet_id, --max, --json |
tweet-by-id | Single tweet (quick) ⭐ New | tweet_id, --json |
list | List timeline | list_id, --max, --json |
followers | Followers list | user_id, --max, --json |
following | Following list | user_id, --max, --json |
post | Post a tweet | text, --reply-to |
delete | Delete a tweet | tweet_id |
like / unlike | Like/unlike | tweet_id |
retweet / unretweet | Retweet/unretweet | tweet_id |
bookmark / unbookmark | Bookmark/unbookmark | tweet_id |
All subcommands support the --auth-token / --ct0 parameters, which can also be replaced with environment variables.
TweetResultByRestId, BookmarkFoldersSlice, BookmarkFolderTimelinetweet-by-id (quick single-tweet retrieval), bookmark-folders (bookmark folders)bookmarks field to Metrics; added the article_title,
article_text, and is_subscriber_only fields to Tweet; added the BookmarkFolder dataclass.client.py into an independent module; fixed the new API structure (core.name/core.screen_name);
parse_tweet_result supports full text from note_tweet (long tweets with "Show more");
added _unwrap_visibility to handle TweetWithVisibilityResults;
fixed parse_user_result so the joined date is read from core.created_at.False values in features are not sent, avoiding 414 errors.x-client-transaction-id header.
This header is generated by xclienttransaction (a C extension), which cannot be installed in the iSH/Alpine environment.
Therefore, the search command is temporarily unavailable in this environment. Alternative: use browser_use to navigate to the search page and extract the DOM.max_count has a hard limit of 500 to prevent accidentally sending a large number of requests.curl_cffi for TLS fingerprint spoofing. This skill uses stdlib urllib instead.
If you encounter risk controls, you can try passing the complete cookie string through the cookie_string parameter to strengthen the fingerprint.© OpenMinis, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 7 other files (scripts) in twitter-x-hub of OpenMinis/MinisSkills.
Open the folder on GitHubat commit ae8c5db
Twitter X Hub next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Twitter X Hub this skillOpenMinis/MinisSkills | 446 | — | ~2.9k | Automated safety check: Pass | MIT | |
| Xtwitter Scrapermanagedcode/dotnet-skills | 486 | — | ~1.5k | Automated safety check: Pass | MIT | |
| X Twitter ScraperLeoYeAI/openclaw-master-skills | 2.2k | — | ~7.1k | Automated safety check: Pass | MIT | |
| Neo4ier/neo | 756 | — | ~1.8k | Automated safety check: Pass | None | |
| X Twitter Scraperdavila7/claude-code-templates | 33k | — | ~2.3k | Automated safety check: Pass | MIT | |
| Spider Kingaoyunyang/spider-king-skill | 509 | — | ~7.3k | Automated safety check: Pass | MIT |
managedcode/dotnet-skills
Use XTwitterScraper when a .NET application needs typed access to Xquik's X automation REST API for tweet search, user lookup, posting workflows, extraction jobs, monitors, webhooks, or giveaway…
LeoYeAI/openclaw-master-skills
X API & Twitter automation skill. An agent skill from LeoYeAI/openclaw-master-skills.
4ier/neo
Browse websites, read web pages, interact with web apps, call website APIs, and automate web tasks.
davila7/claude-code-templates
A skill your agent uses when the user wants to integrate with the X (Twitter) API via Xquik to search tweets, look up user profiles, extract followers, run giveaway draws, monitor accounts, or…
aoyunyang/spider-king-skill
Pure-web protocol reverse skill: turn hostile browser clients into browser-free Python collectors.
kaitoInfra/twitterapi-io
Official skill for twitterapi.io — query Twitter/X data (tweets, profiles, followers, advanced search, trends, spaces, communities, lists) and perform authenticated actions (post, reply, like…
OpenMinis/MinisSkills
Automate Android apps that have no public API or web version by driving the UI layer through the Accessibility Service.
OpenMinis/MinisSkills
Install and run OpenAI Codex CLI inside the Minis/iSH Alpine sandbox on iOS, where rustls TLS and async sockets are broken.
OpenMinis/MinisSkills
Score a claim against the evidence behind it. An agent skill from OpenMinis/MinisSkills.
OpenMinis/MinisSkills
HyperFrames CLI and Minis rendering. An agent skill from OpenMinis/MinisSkills.
OpenMinis/MinisSkills
Predict when a person's brain works best from their sleep, using the WhenPeak performance-intelligence API, and turn it into concrete scheduling advice.
OpenMinis/MinisSkills
Generate a mobile-first, immersive, Amap(Gaode)-style custom landmark marker HTML map for travel itinerary planning, place showcasing, location sharing, etc.
Works with
Categories
Skill for reading and writing Twitter/X data with Python + UV, with zero third-party dependencies (pure standard library), by directly passing the authtoken + ct0 cookies for authentication. Twitter X Hub is an agent skill from OpenMinis/MinisSkills. Skill for reading and writing Twitter/X data with Python + UV, with zero third-party dependencies (pure standard library), by directly passing the authtoken + ct0 cookies for authentication.
Twitter X Hub fits situations like: mentions scraping Twitter data; twitter timeline; request Twitter with cookies; twitter GraphQL.
Run `npx skills add OpenMinis/MinisSkills --skill twitter-x-hub -a claude-code`. Or copy the skill folder (twitter-x-hub in OpenMinis/MinisSkills) into .claude/skills/twitter-x-hub in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OpenMinis/MinisSkills --skill twitter-x-hub -a codex`. Or copy the skill folder (twitter-x-hub in OpenMinis/MinisSkills) into .agents/skills/twitter-x-hub in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenMinis/MinisSkills --skill twitter-x-hub -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/twitter-x-hub, .gemini/skills/twitter-x-hub, .github/skills/twitter-x-hub and .opencode/skills/twitter-x-hub in your project.
Going by SKILL.md and its folder, Twitter X Hub needs Python for the scripts in its folder, the command-line tools its instructions call (uv and pip) and credentials named TWITTER_AUTH_TOKEN and COOKIE_AUTH_TOKEN. Our summary lists: Python 3; A credential in TWITTER_AUTH_TOKEN; A credential in COOKIE_AUTH_TOKEN.
SKILL.md names 2 domains. In commands or code: x.com; the agent is likely to contact it when it follows the instructions. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Twitter X Hub is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Twitter X Hub: Xtwitter Scraper (managedcode/dotnet-skills, 486 stars), X Twitter Scraper (LeoYeAI/openclaw-master-skills, 2.2k stars), Neo (4ier/neo, 756 stars) and X Twitter Scraper (davila7/claude-code-templates, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
OpenMinis (a GitHub organization) maintains it in OpenMinis/MinisSkills, which has 446 GitHub stars. The repository holds 49 skills in this directory. The repository was last updated on October 7, 2026.
Source: OpenMinis/MinisSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.