x-media-parser

解析 X/Twitter 帖子,获取图片和视频的下载直链。使用 vxtwitter API,无需登录。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "x-media-parser" with this command: npx skills add Ingress007/x-media-parser

X Media Parser

解析 X/Twitter 帖子,获取图片和视频的下载直链。

功能

  • ✅ 解析 X/Twitter 帖子
  • ✅ 获取图片直链(支持多图)
  • ✅ 获取视频直链(支持多视频)
  • ✅ 无需登录/X API Key
  • ✅ 支持 GIF
  • ✅ 返回媒体元信息(分辨率、时长等)

使用方法

命令行

x-media-parser "https://x.com/user/status/1234567890"

返回格式

{
  "success": true,
  "media": {
    "type": "video",
    "title": "用户名: 贴文内容",
    "directUrl": "https://video.twimg.com/...",
    "videoUrls": ["..."],
    "imageUrls": null,
    "thumbnail": "https://pbs.twimg.com/...",
    "duration": 120,
    "resolution": "1920x1080"
  }
}

媒体类型

  • video - 单视频
  • videos - 多视频
  • image - 单图片
  • images - 多图片
  • mixed - 混合(视频+图片)

底层实现

使用 vxtwitter API: https://api.vxtwitter.com/Twitter/status/{tweetId}

依赖

  • curl
  • python3

配合 Aria2 使用

# 解析帖子
JSON=$(x-media-parser "https://x.com/user/status/123")

# 提取直链
URL=$(echo "$JSON" | python3 -c "import sys,json; print(json.load(sys.stdin)['media']['directUrl'])")

# 发送到 Aria2 下载
aria2-download "$URL"

一键下载脚本

同目录下提供 x-aria-download.sh,可一键解析并下载:

x-aria-download "https://x.com/user/status/123"

文件名格式:昵称_贴文前10字_编号.扩展名

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

baidu-search

Comprehensive search API integration for Baidu Qianfan Web Search. Use when Claude needs to perform web searches using Baidu Qianfan's enterprise search API....

Registry SourceRecently Updated
General

Self Memory Manager

管理 Claude 的记忆和工作流程优化。包括:(1) Context 使用管理 (2) 重要信息存档 (3) 定时总结 (4) 工作文件夹维护 用于:context 超过 80%、重要信息需要记录、每日总结、清理旧 session

Registry SourceRecently Updated
General

Seedance Video

Generate AI videos using ByteDance Seedance. Use when the user wants to: (1) generate videos from text prompts, (2) generate videos from images (first frame,...

Registry SourceRecently Updated