x-tweet-by-url
Skill này làm gì
Skill nhận một liên kết X hoặc Twitter và trả về các tweet hiển thị trên trang đó. Skill dành cho người đã có liên kết và muốn lấy dữ liệu phía sau mà không cần chọn phương pháp.
Khi nào nên dùng
- ✓Khi bạn có liên kết một trang tìm kiếm X và muốn có các tweet của nó trong danh sách.
- ✓Khi bạn có liên kết một tweet riêng và muốn xem chi tiết của nó.
- ✓Khi bạn có liên kết một danh sách X và muốn xem các tweet trong đó.
Liên kết skill
https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-tweet-by-url/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Đây là liên kết tìm kiếm trên X. Hãy cho tôi các tweet mà nó hiển thị, kèm tác giả và số liệu tương tác.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill kiểm tra loại trang X mà liên kết trỏ tới, mở trang trong trình duyệt đã đăng nhập và đọc các tweet được tải. Skill trả về từng tweet kèm nội dung, tác giả, số liệu tương tác, media, hashtag, lượt nhắc đến và con trỏ để xem thêm.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
X — Tweets by URL
Any X URL (search, profile, single tweet, list) → normalized list of tweets matching that URL's timeline.
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Accept any X URL as input, automatically detect which timeline endpoint it triggers, navigate to it, and return structured per-tweet data with pagination cursors. This unifies search, profile, single-tweet conversation, and list extraction under one entry point.
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 classify URLs and parse responses — they do not call X directly. Run them through the bash tool.
Network Capture: tweets via input URL
Step 1 — classify the URL to determine which GraphQL endpoint will be triggered and which --source to pass to the parser:
META=$(python scripts/classify-url.py '{url}')
classify-url.py outputs a JSON object with fields:
normalized_url: the URL withtwitter.comrewritten tox.com.kind: one ofsearch,user_tweets,user_replies,user_media,tweet_detail,list,unknown.endpoint: the GraphQL endpoint name to filter by (SearchTimeline/UserTweets/UserTweetsAndReplies/UserMedia/TweetDetail/ListLatestTweetsTimeline).extract_source: the--sourcevalue to pass toparse-tweets.py(search/user_tweets/user_replies/user_media/tweet_detail/list).params: detected path parameters (handle,tweet_id,list_id) when applicable.
If kind == "unknown", report to the user that the URL is not a supported X timeline type and stop.
Step 2 — navigate and capture the first page:
network requests --clearnavigate "$(echo "$META" | python -c "import sys,json;print(json.load(sys.stdin)['normalized_url'])")"wait stable --timeout 25000(timeout is normal on X; proceed)- Let
EP=endpointfrom$META.network requests --type xhr,fetch --filter "$EP"→ take the latest entry'srequest_id. network request <request_id>→ save totmp/x-url-page-1.txt.- Let
SRC=extract_sourcefrom$META.python scripts/parse-tweets.py --json-file tmp/x-url-page-1.txt --source "$SRC".
Endpoint characteristic: URL contains /i/api/graphql/<hash>/<endpoint-name>. The query hash rotates; always filter by name.
Step 3 — paginate via scroll (skip when kind == "tweet_detail" and only the focal tweet is required; keep paginating when collecting the full reply thread):
network requests --clearscroll down --amount 5000wait stable --timeout 10000network requests --type xhr,fetch --filter "$EP"→ newest entry'srequest_idnetwork request <request_id>→ save totmp/x-url-page-N.txtpython scripts/parse-tweets.py --json-file tmp/x-url-page-N.txt --source "$SRC"
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 kind == "search" and the page shows a captcha challenge (detect via state showing an "Authorize access to your account" or "Help us keep X safe" panel), pause and ask the user. If kind == "list" and the response's `data.list.twe
Câu hỏi thường gặp
Những loại liên kết nào hoạt động?
Mô tả bao gồm trang tìm kiếm, hồ sơ, tweet riêng lẻ và dòng thời gian của danh sách.
Bạn có cần đăng nhập không?
Có. Skill cần phiên X đang hoạt động trong trình duyệt.
Bạn có thể đưa nhiều liên kết không?
Có. Mô tả cho biết skill nhận cả liên kết X lẫn Twitter trộn lẫn.
Chi tiết
Mô tả gốc của tác giả
Scrapes tweets from any X (Twitter) URL — search results, user profile, single tweet detail, or list timeline — and returns normalized per-tweet data with text, author, engagement counts, media, hashtags, mentions, and cursor for pagination. Use when user mentions X URL scraper, Twitter URL scraper, scrape from URL, given an X link, given a Twitter link, accept mixed X URLs, accept mixed Twitter URLs, search URL, profile URL, list URL, status URL, tweet detail URL, scrape startUrls Twitter, X startUrls, mixed batch of Twitter links, paste links and scrape, mass URL extraction X, mass URL extra
repo: browser-act/skills
Độ phổ biến
- Sao GitHub
- 6.3k
- Vị trí xếp hạng
- #14320
- Giấy phép
- MIT
- Cập nhật
- 24/8/2026
Bình luận
- …
Thêm skill từ kho mã này
browser-act-skill-forge
6.3kGiúp agent của bạn khám phá một website một lần rồi lưu thành một skill tái sử dụng với các script, để lấy dữ liệu từ site đó sau này nhanh hơn.
browser-act
6.3kGiúp agent của bạn chạy công cụ tự động hóa trình duyệt để mở trang, đọc nội dung đã render, điền biểu mẫu, chụp ảnh màn hình và quản lý phiên đã đăng nhập.
1688-product-detail
6.3kGiúp agent của bạn lấy chi tiết sản phẩm từ một trang bán buôn 1688.com, như bậc giá, biến thể, thống kê người bán và thuộc tính.
airbnb-listing-detail
6.3kGiúp agent của bạn lấy chi tiết công khai của một tin đăng Airbnb theo ID, như ảnh, tiện nghi, đánh giá và nội quy nhà.
Skill tương tự
xurl
394kGiúp agent của bạn đăng, trả lời, tìm kiếm và đọc trên X, gửi tin nhắn riêng và tải lên phương tiện, bằng công cụ xurl đã xác thực.
connections-optimizer
280kCải thiện các kết nối trên mạng xã hội của bạn. Gợi ý ai nên theo dõi hoặc bỏ theo dõi và giúp soạn tin nhắn cá nhân hóa để mở rộng mạng lưới.
content-engine
280kTạo nội dung cho nhiều nền tảng khác nhau. Giúp soạn bài đăng, kịch bản và lịch nội dung phù hợp với các mạng như X, LinkedIn và YouTube.