x-tweet-search
What it does
This skill gathers full tweet data from X for a search query, a user's handle or a direct link. It is for marketers, researchers and analysts who work with X content.
When to use it
- ✓When you want to collect tweets about a topic on X.
- ✓When you need the posts of a specific X account in a structured list.
- ✓When you want to gather tweet metrics for social media research.
Skill link
https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-tweet-search/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Collect recent tweets that mention our product name, with the author details and engagement numbers.”
5 new skills a week. 1 minute to read.
How it works
The skill opens the X search, profile or tweet page in your logged-in browser and reads the tweets. It returns a structured list with the text, author information, engagement metrics, media and hashtags for each tweet.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
X (Twitter) — Tweet Search & Scraper
Search query / handle / URL → structured tweet list (text, author, metrics, media, entities)
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Collect tweets matching a search query, from specific user profiles, or from direct URLs, extracting complete structured data for each tweet.
Prerequisites
- Target page is already open in the browser:
https://x.com/search?q=...orhttps://x.com/{handle}or a direct tweet/list URL - User must be logged in to X (user avatar or username visible in left sidebar)
Pre-execution Checks
1. Tool Readiness
If browser-act has been confirmed available in the current session → skip this step.
Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.
2. Login Verification
If login status for X has been confirmed in the current session → skip this step.
Otherwise: open https://x.com and observe the left sidebar:
- User avatar or "@username" visible at the bottom → logged in, continue
- "Sign in" or "Log in" button visible → not logged in, inform user that X login is required and assist with the login flow
User refuses or cannot log in → terminate execution.
Capability Components
This Skill's operational boundary = what the user can manually do in their browser. It reads tweet data already rendered in the X DOM, never bypassing authentication. JS is encapsulated in
scripts/files, invoked viaeval "$(python scripts/xxx.py)". Use the bash tool for execution.
DOM: Tweet list extraction (React Fiber)
Extracts all currently visible tweets from the page via React internal state (React Fiber). Works on search pages, profile pages, list pages, and any X page rendering tweet articles.
Wait for tweets to appear before extracting:
wait --selector "article[data-testid='tweet']" --state attached --timeout 15000
Extract: eval "$(python scripts/extract-tweets.py)"
Returns a JSON array. Each element:
[
{
"id": "2059255862548738182", // tweet ID
"url": "https://x.com/NASA/status/2059255862548738182", // direct link
"text": "Full tweet text including hashtags and URLs", // full_text field
"created_at": "2026-05-26T12:50:31.000Z", // ISO 8601
"lang": "en", // ISO 639-1 language code, null if unknown
"author_id": "11348282", // author user ID
"author_name": "NASA", // display name
"author_screen_name": "NASA", // @handle (without @)
"author_profile_image": "https://pbs.twimg.com/profile_images/.../photo.jpg",
"author_followers": 92080161, // follower count
"author_following": 305, // following count
"author_verified": false, // legacy blue checkmark
"author_blue_verified": true, // X Blue / Gold / Gray checkmark
"author_location": "Washington, D.C.", // profile location, null if not set
"author_description": "Explore the universe...", // bio, null if empty
"like_count": 82579,
"retweet_count": 11952,
"reply_count": 4230,
"quote_count": 1850,
"bookmark_count": 12400,
"view_count": 25923006, // null if not available
"is_retweet": false,
"is_quote": false,
"is_reply": false,
"in_reply_to_tweet_id": null, // parent tweet ID if is_reply=true
"in_reply_to_user": null, // @handle of replied-to user
"conversation_id": "2059255862548738182",
"hashtags": ["AI", "Space"], // without #
"urls": ["https://example.com/article"], // expanded URLs from entities
"mentions": ["SpaceX", "ESA"], // @handles without @
"media": [
{
"type": "video", // "photo", "video", "animated_gif"
"url": "https://pbs.twimg.com/amplify_video_thumb/.../img/thumb.jpg",
"alt_text": null,
"video_variants": [
{"bitrate": 2176000, "url": "https://video.twimg.com/.../1280x720/video.mp4"},
{"bitrate": 832000, "url": "https://video.twimg.com/.../640x360/video.mp4"}
]
}
],
"source_name": "Twitter for iPhone", // client used to post
"source_url": "http://twitter.com/download/iphone"
}
]
URL Construction Guide
Input type → URL mapping
searchTerms (keyword / advanced query):
FAQ
What can I search with?
You can use a search query, a user handle or a direct X or Twitter link.
Do I need to be logged in?
Yes, the skill checks that you are logged in to X before it reads the page.
What data comes back?
Each tweet includes the text, author details, engagement metrics, media and hashtags.
Details
Original description by the author
Scrapes tweets from X (Twitter) by search query, user handle, or direct URL — returns full tweet data including text, author info, engagement metrics, media, and hashtags. Use when user mentions X, Twitter, tweet scraping, scrape tweets, get tweets, fetch tweets, twitter data, x.com data, tweet collector, tweet search, twitter search, social media scraping, twitter handle scraping, scrape user tweets, from:username, twitter keyword search, hashtag search, twitter timeline, twitter list scraping, collect twitter posts, export tweets, tweet analysis, twitter monitoring, search twitter, get twitt
repo: browser-act/skills
Popularity
- GitHub stars
- 6.3k
- Ranking position
- #14322
- License
- MIT
- Updated
- 8/24/2026
Comments
- …
More skills from this repository
browser-act-skill-forge
6.3kHelps your agent explore a website once and save a reusable skill with scripts, so later data pulls from that site are faster.
browser-act
6.3kHelps your agent run a browser automation tool to open pages, read rendered content, fill forms, take screenshots and manage logged-in sessions.
1688-product-detail
6.3kHelps your agent pull product details from a 1688.com wholesale page, such as price tiers, variants, seller stats and attributes.
airbnb-listing-detail
6.3kHelps your agent fetch the public details of an Airbnb listing by its ID, such as photos, amenities, ratings and house rules.
Similar skills
xurl
394kHelps your agent post, reply, search, and read on X, send direct messages, and upload media, using the authenticated xurl tool.
connections-optimizer
280kImproves your social network connections. It suggests who to follow or unfollow and helps create personalized messages to expand your network.
content-engine
280kCreates content for different platforms. It helps produce posts, scripts, and content calendars that work well on networks like X, LinkedIn, and YouTube.