x-tweet-search-by-query
Skill này làm gì
Skill chạy các tìm kiếm nâng cao trên X và trả về các tweet khớp với truy vấn của bạn. Skill dành cho nhà nghiên cứu, người làm marketing và nhà báo muốn có tweet về một chủ đề trong khoảng thời gian nhất định.
Khi nào nên dùng
- ✓Khi bạn muốn tìm tweet về một chủ đề trong một khoảng thời gian.
- ✓Khi bạn cần các tweet dùng một hashtag hoặc một nhóm từ khóa.
- ✓Khi bạn muốn thu thập một tập lớn tweet để phân tích.
Liên kết skill
https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-tweet-search-by-query/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
“Tìm các tweet về tấm pin mặt trời được đăng từ tháng Giêng đến tháng Ba năm nay, và cho tôi xem nội dung cùng số lượt thích.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill nhập truy vấn tìm kiếm nâng cao của bạn vào X và đọc các tweet khớp. Skill trả về từng tweet kèm nội dung, hồ sơ tác giả, số liệu tương tác, media, hashtag, lượt nhắc đến và con trỏ để phân trang.
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 — Tweet Search by Query
Advanced search query → normalized list of tweets matching the query (with author, engagement, media, cursor).
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Collect tweets that match an X advanced-search query expression, returning structured per-tweet data and pagination cursors for unbounded bulk collection.
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 at the bottom → logged in, continue
- "Sign in" / "Log in" prompt visible → not logged in, inform the user that an X login is required 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 rendered by the user's own X session, never bypassing authentication. Each search request is signed by X's own page JS; the Skill triggers it via URL navigation and reads structured GraphQL responses 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: search tweets via advanced query
All search parameters are encoded into X's native advanced search syntax via the URL builder, then injected through the page URL. The browser's own JS signs the GraphQL request; the response is read from network traffic and parsed locally.
Step 1 — build the search URL with all desired filters:
URL=$(python scripts/build-search-url.py '{raw_query}' --sort {sort} [--language {iso}] [--min-retweets {n}] [--min-faves {n}] [--min-replies {n}] [--since YYYY-MM-DD] [--until YYYY-MM-DD] [--author {handle}] [--in-reply-to {handle}] [--mentioning {handle}] [--only-verified] [--only-blue-verified] [--only-image] [--only-video] [--only-quote] [--exclude-retweets] [--exclude-replies] [--geocode LAT,LON,RADIUSmi] [--near 'PLACE'] [--within 15mi])
Parameters:
raw_query(positional): free-form X advanced search expression; all standard operators are supported and may already include any clause below. Operators added via flags are skipped if the same operator is already present inraw_query.--sort:Latest(default) orTop. Maps to URLf=liveandf=top, which select GraphQLproduct=Latestvsproduct=Top.--language: ISO 639-1 code, appended aslang:CODE.--min-retweets/--min-faves/--min-replies: integer thresholds, appended asmin_retweets:N/min_faves:N/min_replies:N.--since/--until:YYYY-MM-DD, appended assince:/until:.--author: only tweets from this handle, appended asfrom:HANDLE.--in-reply-to: only tweets replying to this handle, appended asto:HANDLE.--mentioning: only tweets mentioning this handle, appended as@HANDLE.--only-verified/--only-blue-verified: appended asfilter:verified/filter:blue_verified.--only-image/--only-video/--only-quote: appended asfilter:images/filter:native_video/filter:quote.--exclude-retweets/--exclude-replies: appended as-filter:retweets/-filter:replies.--geocode:LAT,LON,RADIUSmiorLAT,LON,RADIUSkm, appended asgeocode:LAT,LON,RADIUS.--near/--within: appended asnear:"PLACE"andwithin:VALUE.
Step 2 — navigate and capture the first page:
network requests --clearnavigate "$URL"wait stable --timeout 25000(a timeout is normal on X; proceed even if it fires — the GraphQL response usually completes before the page reaches network-idle)network requests --type xhr,fetch --filter SearchTimeline→ take the latest entry'srequest_idnetwork request <request_id>→ save full output to a file (e.g.tmp/x-search-page-1.txt)python scripts/parse-tweets.py --json-file tmp/x-search-page-1.txt --source search→ emit
Câu hỏi thường gặp
Bạn có thể tìm theo ngày không?
Có. Mô tả cho biết truy vấn nâng cao hỗ trợ bộ lọc ngày since và until.
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.
Có thể thu thập nhiều kết quả không?
Có. Con trỏ cho phép bạn lật qua kết quả để có bộ dữ liệu lớn hơn.
Chi tiết
Mô tả gốc của tác giả
Searches X (Twitter) for tweets by free-form advanced query and returns a normalized tweet list with text, author profile, engagement counts, media, hashtags, mentions, and cursor for pagination. Use when user mentions X search, Twitter search, scrape tweets by keyword, search X by hashtag, search Twitter by hashtag, find tweets about a topic, search tweets by date range, since until search Twitter, advanced Twitter search, tweets with media, tweets with images, tweets with video, top tweets, latest tweets, X latest tab, X top tab, min_faves, min_retweets, min_replies, filter verified Twitter,
repo: browser-act/skills
Độ phổ biến
- Sao GitHub
- 6.3k
- Vị trí xếp hạng
- #14321
- 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.