x-tweet-by-handle
What it does
This skill reads the tweets on an X user's profile timeline and returns each one with its details. It is for marketers and researchers who want to follow an account's posts.
When to use it
- βWhen you want to collect the recent tweets of a specific X account.
- βWhen you need to see only the media posts from an account.
- βWhen you want the replies an account has written along with its tweets.
Skill link
https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-tweet-by-handle/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
βGet the last 50 tweets from the X account @examplebrand, with the engagement counts and media.β
5 new skills a week. 1 minute to read.
How it works
The skill opens the profile timeline in your logged-in browser and reads the tweets in the mode you pick. It returns the text, author profile, engagement counts, media, hashtags, mentions and a cursor for loading more.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
X β Tweets by Handle
X handle + timeline mode β normalized list of that user's tweets (or replies / media-only) with author, engagement, media, cursor.
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Collect tweets from one or more X user profile timelines, selectable between the default tweets tab, the tweets-and-replies tab, and the media-only tab, returning structured per-tweet data and pagination cursors.
Prerequisites
- Active X session in the browser (left sidebar shows logged-in avatar / @handle).
- Network capture is enabled in the browser-act session.
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 @handle visible β logged in, continue
- "Sign in" / "Log in" prompt visible β not logged in, inform the user and assist 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 only reads tweet data already shown to the user, never bypassing authentication. The browser's own JS signs the GraphQL request; the Skill triggers it via URL navigation and reads the response from network traffic. Python scripts under
scripts/only build URLs and parse responses β they do not call X directly. Run them through the bash tool.
Network Capture: profile timeline (tweets / replies / media)
Step 1 β build the profile URL for the desired mode:
URL=$(python scripts/build-profile-url.py '{handle}' --mode {mode})
Parameters:
handle(positional): X handle without@, case-insensitive.--mode: one oftweets(default β triggersUserTweets),replies(triggersUserTweetsAndReplies),media(triggersUserMedia).
Step 2 β navigate and capture the first page:
network requests --clearnavigate "$URL"wait stable --timeout 25000(timeout is normal on X; proceed even if it fires)- Determine the endpoint name to filter by β
UserTweets,UserTweetsAndReplies, orUserMediamatching the chosen mode:network requests --type xhr,fetch --filter UserTweets(when--mode tweets)network requests --type xhr,fetch --filter UserTweetsAndReplies(when--mode replies)network requests --type xhr,fetch --filter UserMedia(when--mode media)
- Take the latest matching entry's
request_id. network request <request_id>β save full output to a file (e.g.tmp/x-profile-page-1.txt).- Parse with the matching
--sourceflag:python scripts/parse-tweets.py --json-file tmp/x-profile-page-1.txt --source user_tweets(fortweets)python scripts/parse-tweets.py --json-file tmp/x-profile-page-1.txt --source user_replies(forreplies)python scripts/parse-tweets.py --json-file tmp/x-profile-page-1.txt --source user_media(formedia)
Endpoint characteristic: URL contains /i/api/graphql/<hash>/UserTweets (or UserTweetsAndReplies / UserMedia). The query hash rotates; always filter by name.
Step 3 β paginate via scroll:
network requests --clearscroll down --amount 5000wait stable --timeout 10000network requests --type xhr,fetch --filter <EndpointName>β take the newest entry'srequest_idnetwork request <request_id>β save totmp/x-profile-page-N.txtpython scripts/parse-tweets.py --json-file tmp/x-profile-page-N.txt --source <source>
Repeat Step 3 until any termination condition is met:
- Accumulated unique tweet count reaches the user's target.
count == 0on the current page.cursor_bottomis unchanged across two consecutive pages.
Error handling: if no matching request appears after a scroll, wait 3 s and retry once. If the page redirects to a "This account doesn't exist" or "Account suspended" view (visible in state output), terminate with an explanatory result. Pinned tweets appear at the top of the first page β they are normal tweets and are included in the output; de-duplicate by id when merging if a pinned tweet would also appear later in chronological order.
Output exa
FAQ
Which modes can I choose?
You can choose tweets only, tweets and replies, or media only.
Do I need to be logged in?
Yes, the skill needs an active X session in your browser.
Can it load more tweets?
Yes, it returns a cursor so you can continue from where it stopped.
Details
Original description by the author
Scrapes tweets from an X (Twitter) user profile timeline given a handle, with selectable mode: tweets, tweets+replies, or media-only. Returns normalized per-tweet data including text, author profile, engagement counts, media, hashtags, mentions, and cursor for pagination. Use when user mentions X user tweets, Twitter user tweets, profile timeline, user feed, @handle tweets, scrape Twitter user, scrape X account, get all tweets from a user, scrape user timeline, download user posts, export tweets from user, with_replies tab, replies tab Twitter, media tab Twitter, photos of user Twitter, videos
repo: browser-act/skills
Popularity
- GitHub stars
- 6.3k
- Ranking position
- #14319
- 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.