Langsung ke konten
Skillpedia
Media sosial6.3k ยท #14319

x-tweet-by-handle

Fungsinya

Skill ini membaca tweet di linimasa profil pengguna X dan mengembalikan setiap tweet beserta detailnya. Skill ini ditujukan untuk pemasar dan peneliti yang ingin mengikuti postingan sebuah akun.

Kapan dipakai

  • โœ“Saat Anda ingin mengumpulkan tweet terbaru dari akun X tertentu.
  • โœ“Ketika Anda hanya ingin melihat postingan media dari sebuah akun.
  • โœ“Saat Anda ingin balasan yang ditulis sebuah akun bersama tweet-tweetnya.

Link skill

https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-tweet-by-handle/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-tweet-by-handle/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œAmbil 50 tweet terakhir dari akun X @examplebrand, beserta jumlah interaksi dan medianya.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini membuka linimasa profil di browser Anda yang sudah masuk, lalu membaca tweet dalam mode yang Anda pilih. Ia mengembalikan teks, profil penulis, jumlah interaksi, media, tagar, sebutan, dan kursor untuk memuat lebih banyak.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 of tweets (default โ€” triggers UserTweets), replies (triggers UserTweetsAndReplies), media (triggers UserMedia).

Step 2 โ€” navigate and capture the first page:

  1. network requests --clear
  2. navigate "$URL"
  3. wait stable --timeout 25000 (timeout is normal on X; proceed even if it fires)
  4. Determine the endpoint name to filter by โ€” UserTweets, UserTweetsAndReplies, or UserMedia matching 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)
  5. Take the latest matching entry's request_id.
  6. network request <request_id> โ†’ save full output to a file (e.g. tmp/x-profile-page-1.txt).
  7. Parse with the matching --source flag:
    • python scripts/parse-tweets.py --json-file tmp/x-profile-page-1.txt --source user_tweets (for tweets)
    • python scripts/parse-tweets.py --json-file tmp/x-profile-page-1.txt --source user_replies (for replies)
    • python scripts/parse-tweets.py --json-file tmp/x-profile-page-1.txt --source user_media (for media)

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:

  1. network requests --clear
  2. scroll down --amount 5000
  3. wait stable --timeout 10000
  4. network requests --type xhr,fetch --filter <EndpointName> โ†’ take the newest entry's request_id
  5. network request <request_id> โ†’ save to tmp/x-profile-page-N.txt
  6. python 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 == 0 on the current page.
  • cursor_bottom is 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

Pertanyaan umum

Mode apa saja yang bisa saya pilih?

Anda bisa memilih hanya tweet, tweet dan balasan, atau hanya media.

Apakah saya perlu login?

Ya, skill ini memerlukan sesi X yang aktif di browser Anda.

Bisakah ia memuat lebih banyak tweet?

Bisa, ia mengembalikan kursor sehingga Anda dapat melanjutkan dari titik ia berhenti.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
6.3k
Peringkat
#14319
Lisensi
MIT
Diperbarui
24/8/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa