x-tweet-fetch
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseX Tweet Fetch
X 推文获取
Get a specific tweet by URL or ID.
通过URL或ID获取特定推文。
Setup
配置
bash
export X_BEARER_TOKEN="your-token" # https://developer.x.com/en/portal/dashboardbash
export X_BEARER_TOKEN="your-token" # https://developer.x.com/en/portal/dashboardUsage
使用方法
bash
${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh <url_or_id>bash
${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh <url_or_id>Examples
示例
bash
undefinedbash
undefinedBy URL
通过URL获取
${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh "https://x.com/kurtwuckertjr/status/1234567890"
${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh "https://x.com/kurtwuckertjr/status/1234567890"
By ID
通过ID获取
${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh 1234567890
undefined${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh 1234567890
undefinedResponse Fields
响应字段
- - Tweet content
text - - Post timestamp
created_at - - Likes, retweets, replies, views
public_metrics - - User info (expanded)
author - - URLs, mentions, hashtags
entities
- - 推文内容
text - - 发布时间戳
created_at - - 点赞、转发、回复、浏览量
public_metrics - - 扩展的用户信息
author - - 链接、提及、话题标签
entities