Langsung ke konten
Skillpedia
Media sosial6.3k Β· #14320

x-tweet-by-url

Fungsinya

Skill ini menerima tautan X atau Twitter dan mengembalikan tweet yang ditampilkan di halaman itu. Skill ini ditujukan untuk orang yang sudah memiliki tautan dan ingin datanya tanpa harus memilih metode.

Kapan dipakai

  • βœ“Saat Anda memiliki tautan pencarian X dan ingin tweet-nya dalam bentuk daftar.
  • βœ“Ketika Anda memiliki tautan satu tweet dan ingin detailnya.
  • βœ“Saat Anda memiliki tautan daftar X dan ingin tweet yang ditampilkannya.

Link skill

https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-tweet-by-url/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-url/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

β€œIni tautan pencarian X. Berikan saya tweet yang ditampilkannya, beserta penulis dan jumlah interaksinya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini memeriksa jenis halaman X yang ditunjuk tautan, membukanya di browser Anda yang sudah masuk, lalu membaca tweet yang dimuatnya. Ia mengembalikan setiap tweet dengan teks, penulis, jumlah interaksi, media, tagar, sebutan, dan kursor untuk lebih banyak.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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 with twitter.com rewritten to x.com.
  • kind: one of search, 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 --source value to pass to parse-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:

  1. network requests --clear
  2. navigate "$(echo "$META" | python -c "import sys,json;print(json.load(sys.stdin)['normalized_url'])")"
  3. wait stable --timeout 25000 (timeout is normal on X; proceed)
  4. Let EP = endpoint from $META. network requests --type xhr,fetch --filter "$EP" β†’ take the latest entry's request_id.
  5. network request <request_id> β†’ save to tmp/x-url-page-1.txt.
  6. Let SRC = extract_source from $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):

  1. network requests --clear
  2. scroll down --amount 5000
  3. wait stable --timeout 10000
  4. network requests --type xhr,fetch --filter "$EP" β†’ newest entry's request_id
  5. network request <request_id> β†’ save to tmp/x-url-page-N.txt
  6. python 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 == 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 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

Pertanyaan umum

Jenis tautan apa saja yang berfungsi?

Deskripsinya mencakup halaman pencarian, profil, satu tweet, dan linimasa daftar.

Apakah saya perlu login?

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

Bisakah saya memberikan beberapa tautan?

Bisa, deskripsinya menyebutkan bahwa ia menerima campuran tautan X dan Twitter.

Detail

Deskripsi asli dari pembuat

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

Popularitas

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

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa