x-tweet-by-conversation
하는 일
이 스킬은 루트 트윗 ID를 주면 X 대화 스레드의 모든 트윗을 모읍니다. 전체 토론을 읽고 싶은 연구자와 분석가를 위한 스킬입니다.
사용하는 경우
- ✓답글을 모두 포함해 X 스레드 전체를 읽고 싶을 때.
- ✓토론이 시간에 따라 어떻게 전개되었는지 알고 싶을 때.
- ✓특정 트윗에 달린 답글을 연구하고 싶을 때.
스킬 링크
https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-tweet-by-conversation/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“ID가 1234567890인 트윗의 전체 대화 스레드를 모든 답글과 각 답글의 좋아요 수까지 포함해 모아 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 로그인된 브라우저에서 X 대화를 열고 나타나는 트윗을 모읍니다. 각 트윗의 본문, 작성자, 참여 수, 미디어, 해시태그, 멘션, 답글 링크를 돌려주며, 각 답글이 어느 트윗에 대한 것인지도 연결합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
X — Tweets by Conversation
Conversation id (root tweet id) → normalized list of every tweet in the thread (focal tweet + replies + sub-replies), with author, engagement, media, cursor.
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Given an X conversation id (which equals the root tweet id), collect the focal tweet and every reply / sub-reply visible to the logged-in session, returning structured per-tweet data with 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: full conversation thread
Step 1 — build the tweet-detail URL for the conversation root:
URL=$(python scripts/build-conversation-url.py '{conversation_id}' [--handle {handle}])
Parameters:
conversation_id(positional): the X conversation id, which equals the root tweet id (the same number you would see inhttps://x.com/i/status/<conversation_id>).--handle: the root tweet's author handle if known; if unknown, leave the default —x.com/i/status/<id>resolves to the same focal tweet because X canonicalises the URL.
Step 2 — navigate and capture the first page:
network requests --clearnavigate "$URL"wait stable --timeout 25000(timeout is normal on X; proceed)network requests --type xhr,fetch --filter TweetDetail→ take the latest entry'srequest_idnetwork request <request_id>→ save full output to a file (e.g.tmp/x-conversation-page-1.txt)python scripts/parse-tweets.py --json-file tmp/x-conversation-page-1.txt --source tweet_detail→ emits JSON{tweets, count, cursor_top, cursor_bottom}. The focal tweet is the first element; subsequent elements are replies (in display order). Each reply carriesis_reply: true,in_reply_to_id,in_reply_to_user, andconversation_id == <root tweet id>, which makes the reply tree reconstructable downstream.
Endpoint characteristic: URL contains /i/api/graphql/<hash>/TweetDetail. The query hash rotates; always filter by name.
Step 3 — paginate via scroll to load deeper replies and sub-replies:
network requests --clearscroll down --amount 5000wait stable --timeout 10000network requests --type xhr,fetch --filter TweetDetail→ newest entry'srequest_idnetwork request <request_id>→ save totmp/x-conversation-page-N.txtpython scripts/parse-tweets.py --json-file tmp/x-conversation-page-N.txt --source tweet_detail
Repeat Step 3 until any termination condition is met:
- Accumulated unique reply count reaches the user's target.
count == 0on the current page.cursor_bottomis unchanged across two consecutive pages.- The page shows a "Show more replies" button gated by visibility filters —
statereveals it; the Agent mayclick <index>to expand more, then resume scrolling.
Error handling:
- If the focal tweet is deleted or protected, the response carries a
TweetTombstoneentry;parse-tweets.pyfilters tombstones, so the result will becount: 0— report to the user and stop. - If no
TweetDetailrequest appears after a scroll, wait 3 s and retry once. Persistent absence after two scrolls means the thread has been fully loaded. - If a captcha challenge appears (visible in
stateas
자주 묻는 질문
대화 ID는 어디서 찾나요?
스레드의 첫 번째 트윗 ID, 즉 루트 트윗 ID입니다.
X에 로그인되어 있어야 하나요?
네, 스킬은 브라우저에서 활성 X 세션이 필요합니다.
답글 구조도 돌려주나요?
네, 각 답글이 어느 트윗에 답한 것인지 연결해 보여 줍니다.
상세 정보
작성자의 원본 설명
Collects every tweet in an X (Twitter) conversation thread given a conversation id (root tweet id) — the focal tweet plus all replies, sub-replies, and quote chains — and returns normalized per-tweet data with text, author, engagement counts, media, hashtags, mentions, in_reply_to mapping, and cursor for pagination. Use when user mentions Twitter conversation, X conversation thread, conversation_id, thread scraper, scrape Twitter replies, all replies to a tweet, replies under a tweet, sub-replies, nested replies, thread harvester, get replies of a tweet, scrape comments on Twitter, scrape comm
repo: browser-act/skills
인기도
- GitHub 스타
- 6.3k
- 순위
- #14318
- 라이선스
- MIT
- 업데이트
- 2026. 8. 24.
댓글
- …
이 저장소의 다른 스킬
browser-act-skill-forge
6.3k에이전트가 웹사이트를 한 번 탐색해 재사용 가능한 스킬을 스크립트와 함께 저장하고, 이후 그 사이트의 데이터를 더 빠르게 가져오도록 돕습니다.
browser-act
6.3k에이전트가 BrowserAct 브라우저 자동화 도구로 페이지를 열고, 렌더링된 내용을 읽고, 양식을 채우고, 스크린샷을 찍고, 로그인된 세션을 관리하도록 돕습니다.
1688-product-detail
6.3k에이전트가 1688.com 도매 페이지에서 가격 단계, 변형 상품, 판매자 통계, 속성 같은 제품 세부 정보를 가져오도록 돕습니다.
airbnb-listing-detail
6.3k에이전트가 숫자 ID로 에어비앤비 숙소의 공개 정보를 가져오도록 돕습니다. 사진, 편의시설, 평점, 숙소 규칙을 포함합니다.